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 at llnl.gov>
Co-authored-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Co-authored-by: Vipin Kumar Verma <vipin.verma at hpe.com>
Signed-off-by: Srikanth N S <srikanth.nagasubbaraoseetharaman at hpe.com>
Closes #11588
UnifiedSplitRaw