HomeFreeBSD

Check l2cache vdevs pending list inside the vdev_inuse()

Description

Check l2cache vdevs pending list inside the vdev_inuse()

The l2cache device could be added twice because vdev_inuse() does not
check spa_l2cache for added devices. Make l2cache vdevs inuse checking
logic more closer to spare vdevs.

Reviewed-by: George Amanakis <gamanakis@gmail.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Fedor Uporov <fuporov.vstack@gmail.com>
Closes #9153
Closes #12689

Details

Provenance
Fedor Uporov <60701163+fuporovvStack@users.noreply.github.com>Authored on Nov 11 2021, 7:54 PM
GitHub <noreply@github.com>Committed on Nov 11 2021, 7:54 PM
Parents
rGd04b5c9e877a: zhack: Add repair label option
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rG49d42425d6dc: Check l2cache vdevs pending list inside the vdev_inuse() (authored by Fedor Uporov <60701163+fuporovvStack@users.noreply.github.com>).Nov 11 2021, 7:54 PM