* [PATCH] cfq: reenable printing of sync/async queue info to blktrace cfqq log messages
@ 2012-06-26 4:28 Josh Hunt
2012-06-26 13:01 ` Vivek Goyal
0 siblings, 1 reply; 2+ messages in thread
From: Josh Hunt @ 2012-06-26 4:28 UTC (permalink / raw)
To: axboe; +Cc: vgoyal, linux-kernel, Josh Hunt
Commit afc24d49c1e5dbeef745c1c1246f5ae6ebd97c71 made the printing of the
sync/async queue info only available when you have CONFIG_CFQ_GROUP_IOSCHED
enabled. This re-enables it for the case when you do not have that config
option set.
Signed-off-by: Josh Hunt <johunt@akamai.com>
---
block/cfq-iosched.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/block/cfq-iosched.c b/block/cfq-iosched.c
index 3c38536..8307b67 100644
--- a/block/cfq-iosched.c
+++ b/block/cfq-iosched.c
@@ -383,7 +383,9 @@ CFQ_CFQQ_FNS(wait_busy);
#else
#define cfq_log_cfqq(cfqd, cfqq, fmt, args...) \
- blk_add_trace_msg((cfqd)->queue, "cfq%d " fmt, (cfqq)->pid, ##args)
+ blk_add_trace_msg((cfqd)->queue, "cfq%d%c " fmt, (cfqq)->pid, \
+ cfq_cfqq_sync((cfqq)) ? 'S' : 'A', \
+ ##args)
#define cfq_log_cfqg(cfqd, cfqg, fmt, args...) do {} while (0)
#endif
#define cfq_log(cfqd, fmt, args...) \
--
1.7.0.4
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH] cfq: reenable printing of sync/async queue info to blktrace cfqq log messages
2012-06-26 4:28 [PATCH] cfq: reenable printing of sync/async queue info to blktrace cfqq log messages Josh Hunt
@ 2012-06-26 13:01 ` Vivek Goyal
0 siblings, 0 replies; 2+ messages in thread
From: Vivek Goyal @ 2012-06-26 13:01 UTC (permalink / raw)
To: Josh Hunt; +Cc: axboe, linux-kernel
On Mon, Jun 25, 2012 at 09:28:43PM -0700, Josh Hunt wrote:
> Commit afc24d49c1e5dbeef745c1c1246f5ae6ebd97c71 made the printing of the
> sync/async queue info only available when you have CONFIG_CFQ_GROUP_IOSCHED
> enabled. This re-enables it for the case when you do not have that config
> option set.
>
> Signed-off-by: Josh Hunt <johunt@akamai.com>
Looks good to me. sync/async classification is independent of group
scheduling and printing the queue type in traces helps.
Acked-by: Vivek Goyal <vgoyal@redhat.com>
Thanks
Vivek
> ---
> block/cfq-iosched.c | 4 +++-
> 1 files changed, 3 insertions(+), 1 deletions(-)
>
> diff --git a/block/cfq-iosched.c b/block/cfq-iosched.c
> index 3c38536..8307b67 100644
> --- a/block/cfq-iosched.c
> +++ b/block/cfq-iosched.c
> @@ -383,7 +383,9 @@ CFQ_CFQQ_FNS(wait_busy);
>
> #else
> #define cfq_log_cfqq(cfqd, cfqq, fmt, args...) \
> - blk_add_trace_msg((cfqd)->queue, "cfq%d " fmt, (cfqq)->pid, ##args)
> + blk_add_trace_msg((cfqd)->queue, "cfq%d%c " fmt, (cfqq)->pid, \
> + cfq_cfqq_sync((cfqq)) ? 'S' : 'A', \
> + ##args)
> #define cfq_log_cfqg(cfqd, cfqg, fmt, args...) do {} while (0)
> #endif
> #define cfq_log(cfqd, fmt, args...) \
> --
> 1.7.0.4
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-06-26 13:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-26 4:28 [PATCH] cfq: reenable printing of sync/async queue info to blktrace cfqq log messages Josh Hunt
2012-06-26 13:01 ` Vivek Goyal
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®