]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc61334b886760462498c871816c30411b58a9d81
tree4f0ea8f36d4cd9af87c6010a15b5587961b61939
parente74dddde18739345a26c809aa463613ba8efd08b
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