Skip to content
  • Ming Lei's avatar
    blk-mq: fix blk_mq_tagset_busy_iter · 2d5ba0e2
    Ming Lei authored
    Commit d250bf4e("blk-mq: only iterate over inflight requests
    in blk_mq_tagset_busy_iter") uses 'blk_mq_rq_state(rq) == MQ_RQ_IN_FLIGHT'
    to replace 'blk_mq_request_started(req)', this way is wrong, and causes
    lots of test system hang during booting.
    
    Fix the issue by using blk_mq_request_started(req) inside bt_tags_iter().
    
    Fixes: d250bf4e
    
     ("blk-mq: only iterate over inflight requests in blk_mq_tagset_busy_iter")
    Cc: Josef Bacik <josef@toxicpanda.com>
    Cc: Christoph Hellwig <hch@lst.de>
    Cc: Guenter Roeck <linux@roeck-us.net>
    Cc: Mark Brown <broonie@kernel.org>
    Cc: Matt Hart <matthew.hart@linaro.org>
    Cc: Johannes Thumshirn <jthumshirn@suse.de>
    Cc: John Garry <john.garry@huawei.com>
    Cc: Hannes Reinecke <hare@suse.com>,
    Cc: "Martin K. Petersen" <martin.petersen@oracle.com>,
    Cc: James Bottomley <James.Bottomley@hansenpartnership.com>
    Cc: linux-scsi@vger.kernel.org
    Cc: linux-kernel@vger.kernel.org
    Reviewed-by: default avatarBart Van Assche <bart.vanassche@wdc.com>
    Tested-by: default avatarGuenter Roeck <linux@roeck-us.net>
    Reported-by: default avatarMark Brown <broonie@kernel.org>
    Reported-by: default avatarGuenter Roeck <linux@roeck-us.net>
    Signed-off-by: default avatarMing Lei <ming.lei@redhat.com>
    Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
    2d5ba0e2