public inbox for linux-block@vger.kernel.org
 help / color / mirror / Atom feed
From: Bart Van Assche <bvanassche@acm.org>
To: Jens Axboe <axboe@kernel.dk>
Cc: "linux-block@vger.kernel.org" <linux-block@vger.kernel.org>,
	Ming Lei <ming.lei@redhat.com>
Subject: Hang in blk_mq_freeze_queue_wait()
Date: Tue, 16 Nov 2021 16:15:45 -0800	[thread overview]
Message-ID: <2f79a604-592e-a4b9-48df-020a5923311f@acm.org> (raw)

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").

Thanks,

Bart.

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

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-17  0:15 Bart Van Assche [this message]
2021-11-17  0:21 ` Hang in blk_mq_freeze_queue_wait() Jens Axboe
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=2f79a604-592e-a4b9-48df-020a5923311f@acm.org \
    --to=bvanassche@acm.org \
    --cc=axboe@kernel.dk \
    --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