1
linux/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 [PATCH] introduce .valid callback for pm_ops 2005-10-30 17:37:15 -08:00
atm
base [PATCH] introduce get_cpu_sysdev() to retrieve a sysfs entry for a cpu. 2005-10-30 17:37:14 -08:00
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 [PATCH] create and destroy cpufreq sysfs entries based on cpu notifiers 2005-10-30 17:37:14 -08:00
crypto [PATCH] CONFIG_IA32 2005-10-30 17:37:10 -08:00
dio
eisa
fc4
firmware [PATCH] CONFIG_IA32 2005-10-30 17:37:10 -08:00
hwmon [PATCH] hwmon: smsc47m1 documentation update 2005-10-28 14:02:14 -07:00
i2c [PATCH] I2C: remove devfs support from i2c-dev driver 2005-10-28 14:02:14 -07:00
ide [PATCH] protect ide_cdrom_capacity by ifdef 2005-10-30 17:37:19 -08:00
ieee1394
infiniband [PATCH] missing include in infiniband 2005-10-29 10:35:07 -07:00
input [PATCH] CONFIG_IA32 2005-10-30 17:37:10 -08:00
isdn
macintosh
mca
md [PATCH] Use sg_set_buf/sg_init_one where applicable 2005-10-30 11:19:43 +11:00
media Let it compile again after i2c algo id removal. Sort headers. 2005-10-29 19:32:27 +01:00
message [PATCH] Typo fix: dot after newline in printk strings 2005-10-30 17:37:20 -08:00
mfd
misc
mmc Au1[12]00 mmc driver. Only tested on the Au1200 at this point though 2005-10-29 19:32:26 +01:00
mtd [ARM] Fix Assabet reboot with SA1100 MTD map driver 2005-10-29 16:14:08 +01:00
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 [PATCH] CONFIG_IA32 2005-10-30 17:37:10 -08:00
pnp
s390 [PATCH] s390, ccw - export modalias 2005-10-30 17:37:16 -08:00
sbus
scsi [PATCH] Typo fix: explictly -> explicitly 2005-10-30 17:37:20 -08:00
serial
sh
sn
tc Use physical addresses at the interface level, letting drivers remap 2005-10-29 19:31:35 +01:00
telephony
usb [PATCH] Typo fix: dot after newline in printk strings 2005-10-30 17:37:20 -08:00
video [PATCH] CONFIG_IA32 2005-10-30 17:37:10 -08:00
w1
zorro
Kconfig
Makefile [PATCH] USB: move handoff code 2005-10-28 16:47:38 -07:00