diff options
author | Logan Gunthorpe <logang@deltatee.com> | 2022-07-27 23:52:45 +0200 |
---|---|---|
committer | Jes Sorensen <jsorensen@fb.com> | 2022-08-23 15:41:28 +0200 |
commit | 39b381252c32275079344d30de18b76fda4bba26 (patch) | |
tree | 74ca20fbdd168d3f926e144c675e2778c5d1b5a6 /config.c | |
parent | mdadm: Replace obsolete usleep with nanosleep (diff) | |
download | mdadm-39b381252c32275079344d30de18b76fda4bba26.tar.xz mdadm-39b381252c32275079344d30de18b76fda4bba26.zip |
tests/00readonly: Run udevadm settle before setting ro
In some recent kernel versions, 00readonly fails with:
mdadm: failed to set readonly for /dev/md0: Device or resource busy
ERROR: array is not read-only!
This was traced down to a race condition with udev holding a reference
to the block device at the same time as trying to set it read only.
To fix this, call udevadm settle before setting the array read only.
Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
Diffstat (limited to 'config.c')
0 files changed, 0 insertions, 0 deletions