summaryrefslogtreecommitdiffstats
path: root/device_cio_free
diff options
context:
space:
mode:
authorDan Horák <dan@danny.cz>2014-03-05 18:27:37 +0100
committerDan Horák <dan@danny.cz>2014-03-05 18:30:57 +0100
commitfb55475ce7a41f3c0274cf59ecc8f15104d9218f (patch)
tree1347d2e99f15a5af09440a996ad34badb4b90470 /device_cio_free
parentb01d408d9f4db9235ca2610feeb40a841984fb01 (diff)
downloadutils-fb55475ce7a41f3c0274cf59ecc8f15104d9218f.tar.gz
utils-fb55475ce7a41f3c0274cf59ecc8f15104d9218f.tar.xz
utils-fb55475ce7a41f3c0274cf59ecc8f15104d9218f.zip
device_cio_free: move the udevadm settle
Having the udeavdm settle call in the global wait_on_devices function causes a 2 minutes delay during normal startup. Until the cause is known move it just to the wait after freeing aa specified set of devices. https://bugzilla.redhat.com/show_bug.cgi?id=1054691#c15
Diffstat (limited to 'device_cio_free')
-rw-r--r--device_cio_free2
1 files changed, 1 insertions, 1 deletions
diff --git a/device_cio_free b/device_cio_free
index b4c3750..cd2b21f 100644
--- a/device_cio_free
+++ b/device_cio_free
@@ -101,7 +101,6 @@ wait_on_devices()
if [ -w $CIO_SETTLE ]; then
[ $VERBOSE ] && echo "Waiting until all pending CIO requests are processed"
echo 1 > $CIO_SETTLE
- udevadm settle
return
fi
@@ -249,6 +248,7 @@ if [ "$DEVICE" ]; then
[ $VERBOSE ] && echo "Freeing specific devices"
free_device $DEVICE
wait_on_devices
+ udevadm settle
exit 0
fi