HomeFreeBSD

zvol: Fix suspend lock leaks (#16270)

Description

zvol: Fix suspend lock leaks (#16270)

In several functions, we use a flag variable to track whether
zv_suspend_lock is held. This flag was not getting reset in a
particular case where we need to retry the underlying operation,
resulting in a lock leak. Make sure to update the flag where necessary.

Signed-off-by: Mark Johnston <markj@FreeBSD.org>
Reviewed-by: Allan Jude <allan@klarasystems.com>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>

Details

Provenance
markjAuthored on Jul 10 2024, 9:27 PM
GitHub <noreply@github.com>Committed on Jul 10 2024, 9:27 PM
Parents
rG326040b28525: Fix the name of the zfs_prefetch_disable parameter (#16319)
Branches
Unknown
Tags
Unknown