mdmon: don't wait for O_EXCL when shutting down.
authorNeilBrown <neilb@suse.de>
Tue, 22 Mar 2011 05:10:22 +0000 (16:10 +1100)
committerNeilBrown <neilb@suse.de>
Tue, 22 Mar 2011 05:10:22 +0000 (16:10 +1100)
commitd998b738f5b91e6058659b459e5b9e3717d085f6
tree18a7e8eeff84004a86e0c37753acc8da9dcfc9f0
parent4e2c1a9a32c8e4c85bc699ff425a75bd5c594f8e
mdmon: don't wait for O_EXCL when shutting down.

If mdmon is shutting down because there are no devices
left to look at, then don't wait 5 seconds for an O_EXCL open,
and that can block progress of --grow.

Only wait for O_EXCL if we received a signal.

Signed-off-by: NeilBrown <neilb@suse.de>
mdadm.h
monitor.c
util.c