HomeFreeBSD

Fixed issue with processing of EC_dev_remove event

Description

Fixed issue with processing of EC_dev_remove event

The pool guid and vdev guid received by zfs_agent_post_event(),
which calls zfs_retire_recv(), are normally non-zero. However,
later in this same method they may be unconditionally reset to
zero by the code which is intended to handle multipath, spare
and l2arc vdevs. This will result in the EC_dev_remove not
being handled.

Reviewed-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 #11564

Details

Provenance
nssrikanth <75025422+nssrikanth@users.noreply.github.com>Authored on Feb 5 2021, 4:30 PM
GitHub <noreply@github.com>Committed on Feb 5 2021, 4:30 PM
Parents
rGd66f017c1775: zfs-list.8: clarify listing snapshots
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rG32366649d316: Fixed issue with processing of EC_dev_remove event (authored by nssrikanth <75025422+nssrikanth@users.noreply.github.com>).Feb 5 2021, 4:30 PM