diff options
| author | Michal Hocko <[email protected]> | 2013-09-24 22:27:29 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2013-09-25 00:00:25 +0000 |
| commit | 359e6fab6600562073162348cd4c18c5958296d8 (patch) | |
| tree | a7cd07315603004dc2b00311df8cfa259b863feb /fs/btrfs/dev-replace.c | |
| parent | Linux 3.12-rc2 (diff) | |
| download | kernel-359e6fab6600562073162348cd4c18c5958296d8.tar.gz kernel-359e6fab6600562073162348cd4c18c5958296d8.zip | |
watchdog: update watchdog attributes atomically
proc_dowatchdog doesn't synchronize multiple callers which might lead to
confusion when two parallel callers might confuse watchdog_enable_all_cpus
resp watchdog_disable_all_cpus (eg watchdog gets enabled even if
watchdog_thresh was set to 0 already).
This patch adds a local mutex which synchronizes callers to the sysctl
handler.
Signed-off-by: Michal Hocko <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Acked-by: Don Zickus <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Ingo Molnar <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions
