aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/smp.h
diff options
context:
space:
mode:
authorMichal Hocko <mhocko@suse.cz>2013-09-24 15:27:29 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2013-09-24 17:00:25 -0700
commit359e6fab6600562073162348cd4c18c5958296d8 (patch)
treea7cd07315603004dc2b00311df8cfa259b863feb /include/linux/smp.h
parentLinux 3.12-rc2 (diff)
downloadlinux-dev-359e6fab6600562073162348cd4c18c5958296d8.tar.xz
linux-dev-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 <mhocko@suse.cz> Cc: Frederic Weisbecker <fweisbec@gmail.com> Acked-by: Don Zickus <dzickus@redhat.com> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Ingo Molnar <mingo@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/smp.h')
0 files changed, 0 insertions, 0 deletions