Skip to content

Bug fixes for --write-zeros option

Logan Gunthorpe linux-raid 1 version Applied

Status from this message: Applied!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2mdadm: Fix hang race condition in wait_for_zero_forks()Create.c+15 -131 reply
2/2mdadm: Block SIGCHLD processes before starting childrenCreate.c+1 -00 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchPaul Menzel
1/2R-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH mdadm 0/2] Bug fixes for --write-zeros option

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