linux-block.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* regression: block: take bd_mutex around delete_partitions in del_gendisk
@ 2021-06-02 19:10 Colin Ian King
  0 siblings, 0 replies; only message in thread
From: Colin Ian King @ 2021-06-02 19:10 UTC (permalink / raw)
  To: Christoph Hellwig; +Cc: Jens Axboe, Hannes Reinecke, linux-block

Hi,

I've hit a regression in the 5.13-rc4 kernel with loop mounting. When
running the stress-ng loop stress test with multiple CPUs (e.g. 8) with
multiple stressors I get softlock hangs with the following commit:

commit c76f48eb5c084b1e15c931ae8cc1826cd771d70d (refs/bisect/bad)
Author: Christoph Hellwig <hch@lst.de>
Date:   Tue Apr 6 08:22:56 2021 +0200

    block: take bd_mutex around delete_partitions in del_gendisk

How to reproduce (run on a multi-threaded machine):

git clone git://kernel.ubuntu.com/cking/stress-ng
cd stress-ng
make clean
make
sudo ./stress-ng --loop 8 -t 60 -v

Without the commit the stress test will complete. With the commit the
stressors will softlock up after a couple of minutes or so.

The stress-ng stressor does force some races as it does rapid loopback
exercising.

Colin

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-06-02 19:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-02 19:10 regression: block: take bd_mutex around delete_partitions in del_gendisk Colin Ian King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).