Retry removal of busy minors
authorDaniel Verite <daniel@verite.pro>
Sat, 9 Jun 2012 02:16:11 +0000 (04:16 +0200)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 11 Jun 2012 17:50:20 +0000 (10:50 -0700)
commitc6327b63e6d3a11bb333829a8341d572e2fa7d9f
tree01a1764760e818068e83caf691a5ea3ee70fca44
parent92e91da20839ee50536223bedf2ba4fb7d2fae71
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
lib/libzfs/libzfs_dataset.c