• Ming Lei's avatar
    blk-mq: fix blk_mq_all_tag_iter · 22f614bc
    Ming Lei authored
    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: bf0beec0 ("blk-mq: drain I/O when all CPUs in a hctx are offline")
    Signed-off-by: default avatarMing Lei <ming.lei@redhat.com>
    Tested-by: default avatarJohn 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: default avatarJens Axboe <axboe@kernel.dk>
    22f614bc
blk-mq-tag.c 16.4 KB