WSL2-Linux-Kernel/Documentation
Rasmus Villemoes bc44fa734c watchdog: make nowayout sysfs file writable
It can be useful to delay setting the nowayout feature for a watchdog
device. Moreover, not every driver (notably gpio_wdt) implements a
nowayout module parameter/otherwise respects CONFIG_WATCHDOG_NOWAYOUT,
and modifying those drivers carries a risk of causing a regression for
someone who has two watchdog devices, sets CONFIG_WATCHDOG_NOWAYOUT
and somehow relies on the gpio_wdt driver being ignorant of
that (i.e., allowing one to gracefully close a gpio_wdt but not the
other watchdog in the system).

So instead, simply make the nowayout sysfs file writable. Obviously,
setting nowayout is a one-way street.

Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20191105205118.11359-1-linux@rasmusvillemoes.dk
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
2019-11-18 19:53:43 +01:00
..
ABI watchdog: make nowayout sysfs file writable 2019-11-18 19:53:43 +01:00
EDID
PCI
RCU
accounting
admin-guide xen: fixes for 5.4-rc3 2019-10-12 14:11:21 -07:00
arm
arm64 arm64: apply ARM64_ERRATUM_843419 workaround for Brahma-B53 core 2019-11-01 10:47:37 +00:00
block
bpf
cdrom
core-api Modules fixes for v5.4-rc3 2019-10-11 10:19:24 -07:00
cpu-freq
crypto
dev-tools mm, page_owner: decouple freeing stack trace from debug_pagealloc 2019-10-14 15:04:00 -07:00
devicetree ARM: SoC fixes 2019-10-25 16:00:47 -04:00
doc-guide
driver-api
fault-injection
fb
features
filesystems add virtio-fs 2019-09-27 15:54:24 -07:00
firmware-guide
firmware_class
fpga
gpu
hid
hwmon hwmon: docs: Extend inspur-ipsps1 title underline 2019-10-07 05:56:57 -07:00
i2c
ia64
ide
iio
infiniband
input
ioctl
isdn
kbuild Modules fixes for v5.4-rc3 2019-10-11 10:19:24 -07:00
kernel-hacking
leds
livepatch
locking
m68k
maintainer
media
mic
mips Main MIPS changes for v5.4: 2019-09-22 09:30:30 -07:00
misc-devices
netlabel
networking Documentation: TLS: Add missing counter description 2019-11-05 18:34:06 -08:00
nios2
openrisc
parisc
pcmcia
power
powerpc
process Documentation/process: Add fallthrough pseudo-keyword 2019-10-11 09:26:05 -07:00
riscv
s390
scheduler
scsi
security Merge branch 'next-integrity' of git://git.kernel.org/pub/scm/linux/kernel/git/zohar/linux-integrity 2019-09-27 19:37:27 -07:00
sh
sound
sparc
sphinx
sphinx-static
spi
target
timers
trace Tracing updates: 2019-09-20 11:19:48 -07:00
translations
usb USB: rio500: Remove Rio 500 kernel driver 2019-10-04 10:53:36 +02:00
userspace-api
virt KVM/Hyper-V: Add new KVM capability KVM_CAP_HYPERV_DIRECT_TLBFLUSH 2019-09-24 13:37:13 +02:00
virtual
vm mm: treewide: clarify pgtable_page_{ctor,dtor}() naming 2019-09-26 10:10:44 -07:00
w1
watchdog linux-watchdog 5.4-rc1 tag 2019-09-27 11:17:38 -07:00
x86
xtensa
.gitignore
COPYING-logo
Changes
CodingStyle
DMA-API-HOWTO.txt
DMA-API.txt
DMA-ISA-LPC.txt
DMA-attributes.txt
IPMI.txt
IRQ-affinity.txt
IRQ-domain.txt
IRQ.txt
Kconfig
Makefile
SubmittingPatches
atomic_bitops.txt
atomic_t.txt
bus-virt-phys-mapping.txt
conf.py
crc32.txt
debugging-modules.txt
debugging-via-ohci1394.txt
digsig.txt
docutils.conf
dontdiff
futex-requeue-pi.txt
hwspinlock.txt
index.rst Main MIPS changes for v5.4: 2019-09-22 09:30:30 -07:00
io-mapping.txt
io_ordering.txt
irqflags-tracing.txt
kobject.txt
kprobes.txt
kref.txt
logo.gif
lzo.txt
mailbox.txt
memory-barriers.txt
nommu-mmap.txt
padata.txt
percpu-rw-semaphore.txt
pi-futex.txt
preempt-locking.txt
rbtree.txt
remoteproc.txt
robust-futex-ABI.txt
robust-futexes.txt
rpmsg.txt
speculation.txt
static-keys.txt
tee.txt
this_cpu_ops.txt
unaligned-memory-access.txt
xz.txt