diff options
author | James Smart <jsmart2021@gmail.com> | 2017-04-23 08:30:07 -0700 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2017-04-24 09:16:03 +0200 |
commit | 78a7ac260e38d511d3f62a9e574cf34aac48d7d3 (patch) | |
tree | f29e7b552d36b5c98af285bc683d376529ce9541 /block/genhd.c | |
parent | 458f280d716d3205214c8bb5d4271bd54e939a61 (diff) |
nvme_fc: add aen abort to teardown
Add abort support for aens. Commonized the op abort to apply to aen or
real ios (caused some reorg/routine movement). Abort path sets termination
flag in prep for next patch that will be watching i/o abort completion
before proceeding with controller teardown.
Now that we're aborting aens, the "exit" code that simply cleared out
their context no longer applies.
Also clarified how we detect an AEN vs a normal io - by a flag, not
by whether a rq exists or the a rqno is out of range.
Note: saw some interesting cases where if the queues are stopped and
we're waiting for the aborts, the core layer can call the complete_rq
callback for the io. So the io completion synchronizes link side completion
with possible blk layer completion under error.
Signed-off-by: James Smart <james.smart@broadcom.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'block/genhd.c')
0 files changed, 0 insertions, 0 deletions