linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH mdadm 0/2] Bug fixes for --write-zeros option
@ 2024-06-04 16:38 Logan Gunthorpe
  2024-06-04 16:38 ` [PATCH mdadm 1/2] mdadm: Fix hang race condition in wait_for_zero_forks() Logan Gunthorpe
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Logan Gunthorpe @ 2024-06-04 16:38 UTC (permalink / raw)
  To: linux-raid, Jes Sorensen, Xiao Ni
  Cc: Guoqing Jiang, Mariusz Tkaczyk, Logan Gunthorpe

Hi,

Xiao noticed that the write-zeros tests failed randomly, especially
with small disks. We tracked this down to an issue with signalfd which
coallesced SIGCHLD signals into one. This is fixed by checking the
status of all children after every SIGCHLD.

While we were at it, we noticed a potential reace with SIGCHLD coming
in before the signal was blocked in wait_for_zero_forks() and fix this
by moving the blocking before the child creation.

Thanks,

Logan

--

Logan Gunthorpe (2):
  mdadm: Fix hang race condition in wait_for_zero_forks()
  mdadm: Block SIGCHLD processes before starting children

 Create.c | 29 ++++++++++++++++-------------
 1 file changed, 16 insertions(+), 13 deletions(-)


base-commit: 46f19270265fe54cda1c728cb156b755273b4ab6
--
2.39.2

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-06-13 13:24 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-04 16:38 [PATCH mdadm 0/2] Bug fixes for --write-zeros option Logan Gunthorpe
2024-06-04 16:38 ` [PATCH mdadm 1/2] mdadm: Fix hang race condition in wait_for_zero_forks() Logan Gunthorpe
2024-06-04 21:34   ` Paul Menzel
2024-06-04 16:38 ` [PATCH mdadm 2/2] mdadm: Block SIGCHLD processes before starting children Logan Gunthorpe
2024-06-12 10:15 ` [PATCH mdadm 0/2] Bug fixes for --write-zeros option Mariusz Tkaczyk
2024-06-13 13:24 ` Mariusz Tkaczyk

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