]> bbs.cooldavid.org Git - net-next-2.6.git/commit
cfq: calculate the seek_mean per cfq_queue not per cfq_io_context
authorJeff Moyer <jmoyer@redhat.com>
Fri, 23 Oct 2009 21:14:49 +0000 (17:14 -0400)
committerJens Axboe <jens.axboe@oracle.com>
Mon, 26 Oct 2009 13:34:46 +0000 (14:34 +0100)
commitb2c18e1e08a5a9663094d57bb4be2f02226ee61c
tree55c092706a0d8a9e645f245bf2ecc45c29ba5aa7
parentc30f33437c3f85ec48353a1ef811e148217a2aaf
cfq: calculate the seek_mean per cfq_queue not per cfq_io_context

async cfq_queue's are already shared between processes within the same
priority, and forthcoming patches will change the mapping of cic to sync
cfq_queue from 1:1 to 1:N.  So, calculate the seekiness of a process
based on the cfq_queue instead of the cfq_io_context.

Signed-off-by: Jeff Moyer <jmoyer@redhat.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
block/cfq-iosched.c
include/linux/iocontext.h