[Parted-maintainers] Bug#549331: Problem reloading extended partitions

Anthony L. Awtrey tony at awtrey.com
Tue Oct 6 17:01:04 UTC 2009


This may actually be a kernel timing bug. It appears that the partition 
deletion ioctl call returns immediately, even though the kernel may 
still have the device busy for a short time longer. The for loop spins 
faster than the kernel can release the busy count on my platform. This 
was not an issue for other, similar platforms, which seems to confirm 
that this is a timing issue.

The attached patch fixes my issue, but this issue should probably be 
demonstrated to someone in kernel land to verify. Frankly, I would 
prefer that the ioctl function block until the partition is added or 
removed, but there may be very good reasons why it doesn't.

Tony
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: retry-wait-on-busy.dpatch
URL: <http://lists.alioth.debian.org/pipermail/parted-maintainers/attachments/20091006/bca4ab57/attachment.txt>


More information about the Parted-maintainers mailing list