]> git.proxmox.com Git - mirror_zfs.git/commit
Fix 'zpool clear' on suspended pools
authorBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 25 Jul 2017 19:20:52 +0000 (12:20 -0700)
committerGitHub <noreply@github.com>
Tue, 25 Jul 2017 19:20:52 +0000 (12:20 -0700)
commit3f759c0c736d3a636614406ac0d6f9335819d6e9
tree7e48cc533fbca37298f6cdbcb41f9c2b878a6421
parentf269060a24d1f43a30d647e0835ca4fcaac6bae9
Fix 'zpool clear' on suspended pools

'zpool clear' should be able to resume I/O on suspended, but otherwise
healthy, pools.

4a283c7 accidentally introduced a new code path where we call
txg_wait_synced() on the suspended pool before we had the chance to
resume I/O via zio_resume(): this results in the 'zpool clear'
command hanging indefinitely, waiting for a TXG that cannot be synced.

Fix this by avoiding the call to txg_wait_synced().

Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: loli10K <ezomori.nozomu@gmail.com>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #6399
module/zfs/zfs_ioctl.c