kernel-ark/drivers
Nate Diller 2ca7d93bb2 [PATCH] block cleanups: Fix iosched module refcount leak
If the requested I/O scheduler is already in place, elevator_switch simply
leaves the queue alone, and returns.  However, it forgets to call
elevator_put, so

'echo [current_sched] > /sys/block/[dev]/queue/scheduler'

will leak a reference, causing the current_sched module to be permanently
pinned in memory.

Signed-off-by: Nate Diller <nate@namesys.com>
Acked-by: Jens Axboe <axboe@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-10-30 17:37:20 -08:00
..
acorn
acpi
atm
base
block [PATCH] block cleanups: Fix iosched module refcount leak 2005-10-30 17:37:20 -08:00
bluetooth
cdrom
char [PATCH] Typo fix: dot after newline in printk strings 2005-10-30 17:37:20 -08:00
connector
cpufreq
crypto
dio
eisa
fc4
firmware
hwmon
i2c
ide
ieee1394
infiniband
input
isdn
macintosh
mca
md
media
message [PATCH] Typo fix: dot after newline in printk strings 2005-10-30 17:37:20 -08:00
mfd
misc
mmc
mtd
net [PATCH] Typo fix: dot after newline in printk strings 2005-10-30 17:37:20 -08:00
nubus
oprofile
parisc
parport
pci [PATCH] Typo fix: dot after newline in printk strings 2005-10-30 17:37:20 -08:00
pcmcia
pnp
s390
sbus
scsi [PATCH] Typo fix: explictly -> explicitly 2005-10-30 17:37:20 -08:00
serial
sh
sn
tc
telephony
usb [PATCH] Typo fix: dot after newline in printk strings 2005-10-30 17:37:20 -08:00
video
w1
zorro
Kconfig
Makefile