public inbox for linux-block@vger.kernel.org
 help / color / mirror / Atom feed
From: Jens Axboe <axboe@kernel.dk>
To: Bart Van Assche <bvanassche@acm.org>
Cc: "linux-block@vger.kernel.org" <linux-block@vger.kernel.org>,
	Ming Lei <ming.lei@redhat.com>
Subject: Re: Hang in blk_mq_freeze_queue_wait()
Date: Tue, 16 Nov 2021 17:21:11 -0700	[thread overview]
Message-ID: <fb109032-3926-98ce-41c0-0670c0037bd9@kernel.dk> (raw)
In-Reply-To: <2f79a604-592e-a4b9-48df-020a5923311f@acm.org>

On 11/16/21 5:15 PM, Bart Van Assche wrote:
> Hi,
> 
> If I run test srp/002 against v5.16-rc1 then dmsetup hangs as follows at 
> the end of the test:
> 
> sysrq: Show Blocked State
> task:dmsetup         state:D stack:28136 pid: 3088 ppid:  3087 
> flags:0x00004000
> Call Trace:
>   <TASK>
>   __schedule+0x4bd/0xc20
>   schedule+0x84/0x140
>   blk_mq_freeze_queue_wait+0xf7/0x130
>   del_gendisk+0x342/0x410
>   cleanup_mapped_device+0x165/0x170 [dm_mod]
>   __dm_destroy+0x280/0x450 [dm_mod]
>   dm_destroy+0x13/0x20 [dm_mod]
>   dev_remove+0x156/0x1d0 [dm_mod]
>   ctl_ioctl+0x2bb/0x4d0 [dm_mod]
>   dm_ctl_ioctl+0xe/0x20 [dm_mod]
>   __x64_sys_ioctl+0xc2/0xe0
>   do_syscall_64+0x35/0x80
>   entry_SYSCALL_64_after_hwframe+0x44/0xae
> 
> I haven't seen this hang with any previous kernel version. Could this be 
> a block layer issue?
> 
> v5.16-rc1 includes Ming's commit 10f7335e3627 ("blk-mq: don't grab 
> ->q_usage_counter in blk_mq_sched_bio_merge").

Can you try with:

https://git.kernel.dk/cgit/linux-block/commit/?h=block-5.16&id=95febeb61bf87ca803a1270498cd4cd61554a68f

-- 
Jens Axboe


  reply	other threads:[~2021-11-17  0:21 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-17  0:15 Hang in blk_mq_freeze_queue_wait() Bart Van Assche
2021-11-17  0:21 ` Jens Axboe [this message]
2021-11-17  4:04   ` Bart Van Assche
2021-11-17  4:06     ` Jens Axboe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=fb109032-3926-98ce-41c0-0670c0037bd9@kernel.dk \
    --to=axboe@kernel.dk \
    --cc=bvanassche@acm.org \
    --cc=linux-block@vger.kernel.org \
    --cc=ming.lei@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox