]> 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)
commit2ef4f7542aef187dc8450905c0937738554a27ab
tree599953a4f653a4091f05074bb7e7cfa94cac2a9b
parenta650e219276255c3309737c67856089aa0fd1977
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: 16dd57a0 ("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