On Tue, Mar 23, 2021 at 04:13:09PM +0800, Chao Leng wrote: >> The above reproduces with the patch applied on upstream nvme code.The new patch(blk_mq_submit_bio_direct) will cause the bug again. > Because it revert add the bio to current->bio_list. > Just try the upstream nvme code, and do not apply the new patch(blk_mq_submit_bio_direct). Indeed, the patch removes the deferred submission, so the original deadlock should not happen.