]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] cfq-iosched: move tasklist walk to elevator.c
authorChristoph Hellwig <hch@lst.de>
Sun, 30 Oct 2005 23:01:39 +0000 (15:01 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 31 Oct 2005 01:37:17 +0000 (17:37 -0800)
commit5350fd84d6e9beef2d98935fd82567820c2ba262
treee372f6bef5205c12024512f3b1df5a76df7f0fba
parentcb7ad4b61e685bd7a3cfef5b9249777ac59dad61
[PATCH] cfq-iosched: move tasklist walk to elevator.c

We're trying to get rid of as much as possible tasklist walks, or at
least moving them to core code.  This patch falls into the second
category.

Instead of walking the tasklist in cfq-iosched move that into
elv_unregister.  The added benefit is that with this change the as
ioscheduler might be might unloadable more easily aswell.

The new code uses read_lock instead of read_lock_irq because the
tasklist_lock only needs irq disabling for writers.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Jens Axboe <axboe@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/block/as-iosched.c
drivers/block/cfq-iosched.c
drivers/block/elevator.c