]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
vdev probe to slow disk can stall mmp write checker
authorDon Brady <don.brady@delphix.com>
Mon, 29 Apr 2024 21:35:53 +0000 (15:35 -0600)
committerGitHub <noreply@github.com>
Mon, 29 Apr 2024 21:35:53 +0000 (14:35 -0700)
commitc3f2f1aa2dccd5528336d90a6dd2f2a5c97b6352
tree03288bc14871d65c4290d25ba88be2bfa07930da
parentb28461b7c6511be571ee2f7d71c0d7be12aa4630
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
16 files changed:
cmd/zpool/zpool_main.c
include/sys/spa.h
include/sys/uberblock_impl.h
include/sys/vdev_impl.h
man/man8/zpool-clear.8
module/zfs/mmp.c
module/zfs/spa.c
module/zfs/txg.c
module/zfs/vdev.c
module/zfs/vdev_label.c
module/zfs/zfs_ioctl.c
module/zfs/zio.c
module/zfs/zio_inject.c
tests/runfiles/linux.run
tests/zfs-tests/tests/Makefile.am
tests/zfs-tests/tests/functional/mmp/mmp_write_slow_disk.ksh [new file with mode: 0755]