public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCHSET] 0/7 IO scheduler abstractions
@ 2006-07-12  8:03 Jens Axboe
  2006-07-12  8:04 ` [PATCH 1/7] elevator: move the backmerging logic into the elevator core Jens Axboe
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Jens Axboe @ 2006-07-12  8:03 UTC (permalink / raw)
  To: linux-kernel; +Cc: nickpiggin

Hi,

So right now we have some duplicated code and data structures among the
io schedulers. Apart from noop, the others all implement their own back
merging with hash helpers, sorting with rbtree helpers, and FIFO
management in private request structures.

This patch set takes care of moving what makes sense into the elevator
core instead. It results in about a 3kb reduction of kernel text, and a
reduction of 550 (!!) lines of kernel C code. The noop scheduler gains
merging capabilities for free, and the deadline scheduler can get rid of
its private deadline_rq structure. The latter is especially nice for
deadline, as it is now allocation free in the request path! deadline
code is also reduced from about 19kb to 11kb.

The patches are also available in the 'iosched' branch of the git block
repo.

 block/as-iosched.c       |  351 ++++-------------------------------
 block/cfq-iosched.c      |  268 +++++----------------------
 block/deadline-iosched.c |  462 +++++++----------------------------------------
 block/elevator.c         |  231 +++++++++++++++++++++--
 block/ll_rw_blk.c        |    7 
 include/linux/blkdev.h   |   18 -
 include/linux/elevator.h |   33 +++
 include/linux/rbtree.h   |    2 
 lib/rbtree.c             |    6 
 9 files changed, 427 insertions(+), 951 deletions(-)

-- 
Jens Axboe


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2006-07-12  8:04 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-12  8:03 [PATCHSET] 0/7 IO scheduler abstractions Jens Axboe
2006-07-12  8:04 ` [PATCH 1/7] elevator: move the backmerging logic into the elevator core Jens Axboe
2006-07-12  8:04 ` [PATCH 2/7] rbtree: fixed reversed RB_EMPTY_NODE and rb_next/prev Jens Axboe
2006-07-12  8:04 ` [PATCH 3/7] elevator: abstract out the rbtree sort handling Jens Axboe
2006-07-12  8:05 ` [PATCH 4/7] elevator: introduce a way to reuse rq for internal FIFO handling Jens Axboe
2006-07-12  8:05 ` [PATCH 5/7] deadline-iosched: remove elevator private drq request type Jens Axboe
2006-07-12  8:06 ` [PATCH 6/7] cfq-iosched: convert to using the FIFO elevator defines Jens Axboe
2006-07-12  8:06 ` [PATCH 7/7] as-iosched: reuse rq for fifo Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox