cfq-iosched: Print sync-noidle information in blktrace messages
authorVivek Goyal <vgoyal@redhat.com>
Wed, 3 Oct 2012 20:57:01 +0000 (16:57 -0400)
committerTejun Heo <tj@kernel.org>
Wed, 9 Jan 2013 16:05:09 +0000 (08:05 -0800)
commitb226e5c411759eec29308f0ea38e918aa695dc7f
tree6f2499ce07c59f7a180de4b21bd5fc8e8f4c09bd
parent1f23f12151ab508728dd5fca12180e2fce6c6949
cfq-iosched: Print sync-noidle information in blktrace messages

Currently we attach a character "S" or "A" to the cfqq<pid>, to represent
whether queues is sync or async. Add one more character "N" to represent
whether it is sync-noidle queue or sync queue. So now three different
type of queues will look as follows.

cfq1234S   --> sync queus
cfq1234SN  --> sync noidle queue
cfq1234A   --> Async queue

Previously S/A classification was being printed only if group scheduling
was enabled. This patch also makes sure that this classification is
displayed even if group idling is disabled.

Signed-off-by: Vivek Goyal <vgoyal@redhat.com>
Acked-by: Jeff Moyer <jmoyer@redhat.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
block/cfq-iosched.c