HomeFreeBSD

Retry removal of busy minors

Description

Retry removal of busy minors

When failing to remove a zvol device link because it's busy, wait
a bit and retry in a loop instead of giving up immediately. This
technique is similar to the loop in zpool_label_disk_wait(), with
the same goal: waiting for the asynchronous udev processes to finish
their work.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #692

Details

Provenance
Daniel Verite <daniel@verite.pro>Authored on Jun 9 2012, 2:16 AM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Jun 11 2012, 5:50 PM
Parents
rG92e91da20839: Include <locale.h> to avoid error: 'LC_ALL' undeclared.
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rGc6327b63e6d3: Retry removal of busy minors (authored by Daniel Verite <daniel@verite.pro>).Jun 11 2012, 5:50 PM