diff options
-rw-r--r-- | device_cio_free | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/device_cio_free b/device_cio_free index 416224b..3367ba1 100644 --- a/device_cio_free +++ b/device_cio_free @@ -26,6 +26,7 @@ DASDCONFIG=/etc/dasd.conf ZFCPCONFIG=/etc/zfcp.conf ZNETCONFIG=/etc/ccw.conf BLACKLIST=/proc/cio_ignore +CIO_SETTLE=/proc/cio_settle VERBOSE= PATH=/bin:/sbin DEVICE= # list of devices given on command line @@ -302,4 +303,9 @@ fi [ -z "$ALL_DEVICES" ] && exit 0 -wait_on_devices +if [ -w $CIO_SETTLE ]; then + [ $VERBOSE ] && echo "Waiting until all pending CIO requests are processed" + echo 1 > $CIO_SETTLE +else + wait_on_devices +fi |