blk-mq: End unstarted requests on dying queue
authorKeith Busch <keith.busch@intel.com>
Thu, 11 Feb 2016 20:05:38 +0000 (13:05 -0700)
committerJens Axboe <axboe@fb.com>
Thu, 11 Feb 2016 20:14:00 +0000 (13:14 -0700)
commita59e0f5795fe52dad42a99c00287e3766153b312
tree0fbb8fabb6b467701a53a33c71121aaceb564073
parent5f009d3f8e6685fe8c6215082c1696a08b411220
blk-mq: End unstarted requests on dying queue

Go directly to ending a request if it wasn't started. Previously, completing a
request may invoke a driver callback for a request it didn't initialize.

Signed-off-by: Keith Busch <keith.busch@intel.com>
Reviewed-by: Sagi Grimberg <sagig@mellanox.com>
Reviewed-by: Johannes Thumshirn <jthumshirn at suse.de>
Acked-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-mq.c