Skip to content

Couple more testing fixes

Logan Gunthorpe linux-raid 1 version Applied

Status from this message: Applied,

Get series with b4
b4 am [email protected]

Versions newest first

  1. v3 Latest2 patches 1 replyApplied

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/2tests/00readonly: Run udevadm settle before setting rotests/00readonly+1 -01 reply
2/2mdadm: Don't open md device for CREATE and ASSEMBLElib.c mdadm.c mdadm.h+33 -200 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH mdadm v3 0/2] Couple more testing fixes

Hey,

The first commit is a new race condition seen with more recent md/md-next kernels. udevadm settle needs to be called in a test to avoid the race.

The second patch I have already sent a couple times[1], but have reworked it based on feedback from Mariusz. The new version of the patch keeps the checks on the device if it already exists but changes them so it doesn't require openning the device (which has annoying side effects).

Logan

[1] https://lkml.kernel.org/r/[email protected]

--

Logan Gunthorpe (2):
tests/00readonly: Run udevadm settle before setting ro
mdadm: Don't open md device for CREATE and ASSEMBLE

 lib.c            | 12 ++++++++++++
 mdadm.c          | 40 ++++++++++++++++++++--------------------
 mdadm.h          |  1 +
 tests/00readonly |  1 +
 4 files changed, 34 insertions(+), 20 deletions(-)

--
2.30.2