[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH] [hotplug scripts] Unlock the 'block' lock before bailing out when no loop device can be found
Unlock the 'block' lock before bailing out when no available loop device can be found. If this is not done the lock is not given up and results in xend's response time becoming very slow. I'd recommend applying the patch to the 3.1 testing tree as well. if [ "$loopdev" = '' ] then --> missing release lock here! fatal 'Failed to find an unused loop device' --> never gets here since fatal leaves with 'exit 1' fi do_or_die losetup "$loopdev" "$file" xenstore_write "$XENBUS_PATH/node" "$loopdev" write_dev "$loopdev" release_lock "block" exit 0 Signed-off-by: Stefan Berger <stefanb@xxxxxxxxxx> Attachment:
release_lock_on_fatal_in_block.diff _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |