linux/Documentation/watchdog
Hans de Goede f4e9c82f64 watchdog: Add Locking support
This patch fixes some potential multithreading issues, despite only
allowing one process to open the /dev/watchdog device, we can still get
called multiple times at the same time, since a program could be using thread,
or could share the fd after a fork.

This causes 2 potential problems:
1) watchdog_start / open do an unlocked test_n_set / test_n_clear,
   if these 2 race, the watchdog could be stopped while the active
   bit indicates it is running or visa versa.

2) Most watchdog_dev drivers probably assume that only one
   watchdog-op will get called at a time, this is not necessary
   true atm.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
2012-05-30 07:55:23 +02:00
..
src Documentation/watchdog: Fix the file descriptor leak when no cmdline arg given 2012-05-23 16:27:48 +02:00
convert_drivers_to_kernel_api.txt watchdog: Add support for WDIOC_GETTIMELEFT IOCTL in watchdog core 2012-03-27 20:15:37 +02:00
hpwdt.txt Fix common misspellings 2011-03-31 11:26:23 -03:00
pcwd-watchdog.txt [WATCHDOG] clean-up watchdog documentation 2007-05-24 17:26:11 +00:00
watchdog-api.txt [WATCHDOG] doc: Fix use of WDIOC_SETOPTIONS ioctl. 2010-04-06 14:23:55 +00:00
watchdog-kernel-api.txt watchdog: Add Locking support 2012-05-30 07:55:23 +02:00
watchdog-parameters.txt watchdog: docs: add an entry for imx2_wdt 2010-07-01 16:02:55 +00:00
wdt.txt watchdog: update/improve/consolidate watchdog driver 2010-05-25 09:05:34 +00:00