lkml.org 
[lkml]   [2005]   [Sep]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/3] block cleanups: Fix iosched module refcount leak
On Tue, Sep 27 2005, Nate Diller wrote:
> 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.
>
> This patchset is against 2.6.14-rc2-mm1, but should apply to anything
> recent.

Thanks, looks good.

Signed-off-by: Jens Axboe <axboe@suse.de>

--
Jens Axboe

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-09-28 00:43    [W:1.691 / U:3.632 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site