mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-23 19:04:45 +03:00
vdev probe to slow disk can stall mmp write checker
Simplify vdev probes in the zio_vdev_io_done context to avoid holding the spa config lock for a long duration. Also allow zpool clear if no evidence of another host is using the pool. Sponsored-by: Klara, Inc. Sponsored-by: Wasabi Technology, Inc. Reviewed-by: Olaf Faaland <faaland1@llnl.gov> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Don Brady <don.brady@klarasystems.com> Closes #15839
This commit is contained in:
@@ -5823,10 +5823,13 @@ zfs_ioc_clear(zfs_cmd_t *zc)
|
||||
|
||||
/*
|
||||
* If multihost is enabled, resuming I/O is unsafe as another
|
||||
* host may have imported the pool.
|
||||
* host may have imported the pool. Check for remote activity.
|
||||
*/
|
||||
if (spa_multihost(spa) && spa_suspended(spa))
|
||||
return (SET_ERROR(EINVAL));
|
||||
if (spa_multihost(spa) && spa_suspended(spa) &&
|
||||
spa_mmp_remote_host_activity(spa)) {
|
||||
spa_close(spa, FTAG);
|
||||
return (SET_ERROR(EREMOTEIO));
|
||||
}
|
||||
|
||||
spa_vdev_state_enter(spa, SCL_NONE);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user