]> git.baikalelectronics.ru Git - kernel.git/commit
blk-mq: fix blk_mq_all_tag_iter
authorMing Lei <ming.lei@redhat.com>
Fri, 5 Jun 2020 11:44:10 +0000 (19:44 +0800)
committerJens Axboe <axboe@kernel.dk>
Sun, 7 Jun 2020 14:56:50 +0000 (08:56 -0600)
commitf58e96ddec4d17480a605b1d28c93aaec4ea5b6e
treea1392f6f487a5d46cfb1939975f615fda561e7be
parentc6c6f6aad04e8e2d616609977a4d0752898dcf4e
blk-mq: fix blk_mq_all_tag_iter

blk_mq_all_tag_iter() is added to iterate all requests, so we should
fetch the request from ->static_rqs][] instead of ->rqs[] which is for
holding in-flight request only.

Fix it by adding flag of BT_TAG_ITER_STATIC_RQS.

Fixes: d59cb6e50183 ("blk-mq: drain I/O when all CPUs in a hctx are offline")
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Tested-by: John Garry <john.garry@huawei.com>
Cc: Dongli Zhang <dongli.zhang@oracle.com>
Cc: Hannes Reinecke <hare@suse.de>
Cc: Daniel Wagner <dwagner@suse.de>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq-tag.c