• Ming Lei's avatar
    blk-mq: fail the request in case issue failure · 8824f622
    Ming Lei authored
    Inside blk_mq_try_issue_list_directly(), if the request is issued as
    failed, we shouldn't try to do it again, otherwise the warning in
    blk_mq_start_request() will be triggered. This change is aligned to
    behaviour of other ways of request issue & dispatch.
    
    Fixes: 6ce3dd6e ("blk-mq: issue directly if hw queue isn't busy in case of 'none'")
    Cc: Kashyap Desai <kashyap.desai@broadcom.com>
    Cc: Laurence Oberman <loberman@redhat.com>
    Cc: Omar Sandoval <osandov@fb.com>
    Cc: Christoph Hellwig <hch@lst.de>
    Cc: Bart Van Assche <bart.vanassche@wdc.com>
    Cc: Hannes Reinecke <hare@suse.de>
    Cc: Kashyap Desai <kashyap.desai@broadcom.com>
    Cc: kernel test robot <rong.a.chen@intel.com>
    Cc: LKP <lkp@01.org>
    Reported-by: default avatarkernel test robot <rong.a.chen@intel.com>
    Signed-off-by: default avatarMing Lei <ming.lei@redhat.com>
    Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
    8824f622
blk-mq.c 75.4 KB