]> git.baikalelectronics.ru Git - kernel.git/commit
block: ensure cached plug request matches the current queue
authorJens Axboe <axboe@kernel.dk>
Thu, 4 Nov 2021 17:54:47 +0000 (11:54 -0600)
committerJens Axboe <axboe@kernel.dk>
Fri, 5 Nov 2021 05:21:01 +0000 (23:21 -0600)
commit3518b373a1f61c1ba245fbe66c11b6b4101f1d05
treedfb0da10e659f98d73fff720ae8d062733726f66
parent5e94f02278ff8b3fa9666a62b600915aaf46acf4
block: ensure cached plug request matches the current queue

If we're driving multiple devices, we could have pre-populated the cache
for a different device. Ensure that the empty request matches the current
queue.

Fixes: 0a13ed03ca84 ("block: pre-allocate requests if plug is started and is a batch")
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c