]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit41215c08174334def6ca627a1820863241d32079
tree6f61eacfe7ade13f0bf06adba5efac052e1038c0
parent59361720f37dd0ae31f4b0efbe74bfa723f1532d
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