cfq: calculate the seek_mean per cfq_queue not per cfq_io_context
commit4a78a06ce2ecea224c55eb2e171ea020110ecaa9
authorJeff Moyer <jmoyer@redhat.com>
Thu, 29 Sep 2011 09:56:58 +0000 (29 15:26 +0530)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 7 Nov 2011 20:32:38 +0000 (7 12:32 -0800)
treea4d3f05b0d0cb93bd5986a81101e76c9c4cac7b9
parent610fba92198e257bb039e49c391bb73cd0c1b2b1
cfq: calculate the seek_mean per cfq_queue not per cfq_io_context

commit b2c18e1e08a5a9663094d57bb4be2f02226ee61c upstream.

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>
Signed-off-by: Suresh Jayaraman <sjayaraman@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
block/cfq-iosched.c
include/linux/iocontext.h