blk-mq: don't time out requests again that are in the timeout handler
authorChristoph Hellwig <hch@lst.de>
Thu, 14 Jun 2018 11:58:45 +0000 (13:58 +0200)
committerJens Axboe <axboe@kernel.dk>
Thu, 14 Jun 2018 14:39:46 +0000 (08:39 -0600)
commitda661267398869a553b7f67d739d360aaa1361b6
tree375b099f3b56b2403b7e2802dd13afe42f2c5a11
parenta347c7ad8edf4c5685154f3fdc3c12fc1db800ba
blk-mq: don't time out requests again that are in the timeout handler

We can currently call the timeout handler again on a request that has
already been handed over to the timeout handler.  Prevent that with a new
flag.

Fixes: 12f5b931 ("blk-mq: Remove generation seqeunce")
Reported-by: Andrew Randrianasulu <randrianasulu@gmail.com>
Tested-by: Andrew Randrianasulu <randrianasulu@gmail.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c
include/linux/blkdev.h