Skip to content

Commit a50c37b

Browse files
committed
macOS: race in registerDevice and offline
Which can cause "is busy" on the zvol. Most easily tested with zfs-tester run over; cli_root/zfs_create, zvol/zvol_cli, zvol/zvol_misc which results in testpool/vol.33979-renamed "is busy". This should be replaced with the proper "wait" condition, whatever that may be.
1 parent 776e1bf commit a50c37b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

module/os/macos/zfs/zvolIO.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1102,6 +1102,7 @@ zvolRenameDevice(zvol_state_t *zv)
11021102
* like zpool export.
11031103
*/
11041104
/* Inform clients of this device that name has changed */
1105+
delay(hz<<1);
11051106
if (zvol->offlineDevice() != 0 ||
11061107
zvol->onlineDevice() != 0) {
11071108
dprintf("%s media reset failed\n", __func__);

0 commit comments

Comments
 (0)