kernel-ark/drivers
Eric W. Biederman 4b998d4f6e [PATCH] sysctl: cdrom: don't set de->owner
There is no need for open files in /proc/sys/XXX to hold a reference count on
the module that provides the file to prevent module unload races.  While there
is code active in the module p->used in the sysctl_table_header is
incremented, preventing the sysctl from being unregisted.  Once the sysctl is
unregistered it cannot be found.  Open files are also not a problem as they
revalidate the sysctl information and bump p->used before accessing module
code.

So setting de->owner is unnecessary, makes for a bad example and gets in my
way of removing ctl_table->de.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Acked-by: Jens Axboe <jens.axboe@oracle.com>
Acked-by: James Bottomley <James.Bottomley@SteelEye.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-02-14 08:09:56 -08:00
..
acorn
acpi
amba
ata [PATCH] scheduled removal of SA_XXX interrupt flags: ata fix 2007-02-14 08:09:55 -08:00
atm
auxdisplay
base
block
bluetooth
cdrom [PATCH] sysctl: cdrom: don't set de->owner 2007-02-14 08:09:56 -08:00
char [PATCH] sysctl: ipmi: remove unnecessary insert_at_head flag 2007-02-14 08:09:56 -08:00
clocksource
connector
cpufreq
crypto
dio
dma
edac
eisa
fc4
firmware
hid
hwmon
i2c
ide
ieee1394
infiniband
input [PATCH] Scheduled removal of SA_xxx interrupt flags fixups 2 2007-02-14 08:09:55 -08:00
isdn
kvm
leds
macintosh [PATCH] sysctl: mac_hid: remove unnecessary insert_at_head flag 2007-02-14 08:09:56 -08:00
mca
md [PATCH] sysctl: md: remove unnecessary insert_at_head flag 2007-02-14 08:09:55 -08:00
media
message
mfd
misc
mmc
mtd [PATCH] Scheduled removal of SA_xxx interrupt flags fixups 2 2007-02-14 08:09:55 -08:00
net [PATCH] Scheduled removal of SA_xxx interrupt flags fixups 2 2007-02-14 08:09:55 -08:00
nubus
oprofile
parisc
parport
pci
pcmcia
pnp
ps3
rapidio
rtc
s390
sbus
scsi [PATCH] sysctl: scsi: remove unnecessary insert_at_head flag 2007-02-14 08:09:55 -08:00
serial
sh
sn
spi
tc
telephony
usb
video
w1
zorro
Kconfig
Makefile