diff options
author | NeilBrown <neilb@suse.de> | 2014-12-15 12:57:00 +1100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2015-02-06 09:32:56 +1100 |
commit | 1b30e66f5acc6bf22fff49d4093cf17454f914b7 (patch) | |
tree | e3aeca2941489abe8ab201fb6b44ccbdf8393fbf /drivers/md/md.h | |
parent | 4af1a04176bdb4688aa14f6c10d1d5131c036a9d (diff) | |
download | linux-stable-1b30e66f5acc6bf22fff49d4093cf17454f914b7.tar.gz linux-stable-1b30e66f5acc6bf22fff49d4093cf17454f914b7.tar.bz2 linux-stable-1b30e66f5acc6bf22fff49d4093cf17454f914b7.zip |
md: minor cleanup in safe_delay_store.
There isn't really much room for races with ->safemode_delay.
But as I am trying to clean up any racy code and will soon
be removing reconfig_mutex protection from most _store()
functions:
- only set mddev->safemode_delay once, to ensure no code
can see an intermediate value
- use safemode_timer to call md_safemode_timeout() rather than
calling it directly, to ensure it never races with itself.
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md/md.h')
0 files changed, 0 insertions, 0 deletions