linux-stable-rt/drivers/block
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
..
aoe [PATCH] Driver Core: fix up all callers of class_device_create() 2005-10-28 09:52:52 -07:00
paride [PATCH] delete 2 unreachable statements in drivers/block/paride/pf.c 2005-10-30 17:37:18 -08:00
DAC960.c
DAC960.h
Kconfig
Kconfig.iosched [PATCH] block cleanups: Add kconfig default iosched submenu 2005-10-30 17:37:20 -08:00
Makefile
acsi.c
acsi_slm.c
amiflop.c
as-iosched.c [PATCH] cfq-iosched: move tasklist walk to elevator.c 2005-10-30 17:37:17 -08:00
ataflop.c
cciss.c
cciss.h
cciss_cmd.h
cciss_scsi.c
cciss_scsi.h
cfq-iosched.c [PATCH] cfq-iosched: move tasklist walk to elevator.c 2005-10-30 17:37:17 -08:00
cpqarray.c
cpqarray.h
cryptoloop.c
deadline-iosched.c
elevator.c [PATCH] block cleanups: Fix iosched module refcount leak 2005-10-30 17:37:20 -08:00
floppy.c
genhd.c [PATCH] add sysfs attr to re-emit device hotplug event 2005-10-28 09:52:51 -07:00
ida_cmd.h
ida_ioctl.h
ioctl.c
ll_rw_blk.c
loop.c
nbd.c
noop-iosched.c
pktcdvd.c
ps2esdi.c
rd.c
scsi_ioctl.c
smart1,2.h
swim3.c
swim_iop.c
sx8.c
ub.c [PATCH] ub: suppress gcc warnings for pointer casts 2005-10-28 16:47:38 -07:00
umem.c
viodasd.c
xd.c
xd.h
z2ram.c