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
..
2005-09-20 21:01:13 +01:00
2005-10-30 17:37:10 -08:00
2005-07-30 09:47:53 -05:00
2005-10-30 17:37:10 -08:00
2005-10-28 10:13:16 -07:00
2005-10-30 17:37:10 -08:00
2005-10-28 12:18:07 -04:00
2005-10-30 17:37:10 -08:00
2005-09-08 01:45:47 -04:00
2005-10-30 17:37:16 -08:00
2005-10-30 17:37:10 -08:00
2005-09-11 19:15:07 -07:00
2005-10-28 16:47:38 -07:00