block: blk_add_rq_to_plug(): clear stale 'last' after flush
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 1 Nov 2022 00:54:13 +0000 (00:54 +0000)
committerJens Axboe <axboe@kernel.dk>
Tue, 1 Nov 2022 02:21:38 +0000 (20:21 -0600)
commit878eb6e48f240d02ed1c9298020a0b6370695f24
tree8050bed961e402b3570ae40aba36e3e27c8424d8
parent943f45b9399ed8b2b5190cbc797995edaa97f58f
block: blk_add_rq_to_plug(): clear stale 'last' after flush

blk_mq_flush_plug_list() empties ->mq_list and request we'd peeked there
before that call is gone; in any case, we are not dealing with a mix
of requests for different queues now - there's no requests left in the
plug.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c