skd: Rework request failing code path
authorBart Van Assche <bart.vanassche@wdc.com>
Thu, 17 Aug 2017 20:13:21 +0000 (13:13 -0700)
committerJens Axboe <axboe@kernel.dk>
Fri, 18 Aug 2017 14:45:29 +0000 (08:45 -0600)
commit3d17a679d3514c6727dcf2a9d9f45c709da5352e
tree4f0ea8f36d4cd9af87c6010a15b5587961b61939
parentcb6981b9a3de38cb2b49eabcec44a1e55056b411
skd: Rework request failing code path

Move the skd_fail_all_pending() call out of skd_request_fn_not_online()
such that this function can be reused in the blk-mq code path.

Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Hannes Reinecke <hare@suse.de>
Cc: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/skd_main.c