Stefan Berger
2007-Oct-03 18:17 UTC
[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@us.ibm.com> _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel