]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: set timed out out mq requests to complete
authorKeith Busch <keith.busch@intel.com>
Mon, 23 Jul 2018 14:37:51 +0000 (08:37 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 24 Jul 2018 20:41:52 +0000 (14:41 -0600)
commit598c38f231f4e54fa8849fd83abc34ea97294592
tree599953a4f653a4091f05074bb7e7cfa94cac2a9b
parent4839b5e2d9a016f5909b9c898c339e7a8f310268
scsi: set timed out out mq requests to complete

The scsi block layer requires requests claimed by the error handling be
completed by the error handler. A previous commit allowed completions
to proceed for blk-mq, breaking that assumption.

This patch prevents completions that may race with the timeout handler
by marking the state to complete, restoring the previous behavior.

Fixes: 1a2411e9 ("blk-mq: Remove generation seqeunce")
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/scsi/scsi_error.c