aboutsummaryrefslogtreecommitdiff
path: root/fs/jbd/commit.c
diff options
context:
space:
mode:
authorNate Diller <[email protected]>2005-10-30 15:02:24 -0800
committerLinus Torvalds <[email protected]>2005-10-30 17:37:20 -0800
commit2ca7d93bb27876e5fd4ebfcb3b00627107bdad4d (patch)
treedb3dbc868db28f9983ce99911ee7795042fba502 /fs/jbd/commit.c
parent3fa63c7d82ab9a12a5d0a299069f8df9f35aa011 (diff)
[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 <[email protected]> Acked-by: Jens Axboe <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'fs/jbd/commit.c')
0 files changed, 0 insertions, 0 deletions