HomeFreeBSD

Cancel TRIM / initialize on FAULTED non-writeable vdevs

Description

Cancel TRIM / initialize on FAULTED non-writeable vdevs

When a device which is actively trimming or initializing becomes
FAULTED, and therefore no longer writable, cancel the active
TRIM or initialization. When the device is merely taken offline
with zpool offline then stop the operation but do not cancel it.
When the device is brought back online the operation will be
resumed if possible.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Co-authored-by: Brian Behlendorf <behlendorf1@llnl.gov>
Co-authored-by: Vipin Kumar Verma <vipin.verma@hpe.com>
Signed-off-by: Srikanth N S <srikanth.nagasubbaraoseetharaman@hpe.com>
Closes #11588

Details

Provenance
nssrikanth <75025422+nssrikanth@users.noreply.github.com>Authored on Mar 2 2021, 6:27 PM
GitHub <noreply@github.com>Committed on Mar 2 2021, 6:27 PM
Parents
rG2e160dee97a4: Fix assert in FreeBSD-specific dmu_read_pages
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rGbedbc13daa6d: Cancel TRIM / initialize on FAULTED non-writeable vdevs (authored by nssrikanth <75025422+nssrikanth@users.noreply.github.com>).Mar 2 2021, 6:27 PM