Make writes to md/safe_mode_delay immediately effective.
authorNeilBrown <neilb@suse.de>
Tue, 5 Aug 2008 05:54:13 +0000 (15:54 +1000)
committerNeilBrown <neilb@suse.de>
Tue, 5 Aug 2008 05:56:31 +0000 (15:56 +1000)
commit19052c0e85a3e9d3b7d190b29fcdbf0e6c105381
tree6f61eacfe7ade13f0bf06adba5efac052e1038c0
parent2b12a4c524812fb3f6ee590a02e65b95c8c32229
Make writes to md/safe_mode_delay immediately effective.

If we reduce the 'safe_mode_delay', it could still wait for the old
delay to completely expire before doing anything about safe_mode.
Thus the effect if the change is delayed.

To make the effect more immediate, run the timeout function
immediately if the delay was reduced.  This may cause it to run
slightly earlier that required, but that is the safer option.

Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/md.c