aboutsummaryrefslogtreecommitdiffstats
path: root/block/cfq-iosched.c
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2012-04-16 16:57:23 -0400
committerJens Axboe <axboe@kernel.dk>2012-04-20 04:06:16 -0400
commit54e7ed12bad1e3aa2a28558fab6850240465f973 (patch)
tree907eb0451782f4eb1ad3f9236e51ec4acb7fb941 /block/cfq-iosched.c
parentc94bed89995e638e43a6663177358b9d20617361 (diff)
blkcg: remove blkio_group->path[]
blkio_group->path[] stores the path of the associated cgroup and is used only for debug messages. Just format the path from blkg->cgroup when printing debug messages. Signed-off-by: Tejun Heo <tj@kernel.org> Cc: Vivek Goyal <vgoyal@redhat.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/cfq-iosched.c')
-rw-r--r--block/cfq-iosched.c21
1 files changed, 14 insertions, 7 deletions
diff --git a/block/cfq-iosched.c b/block/cfq-iosched.c
index eb07eb64e85b..901286b5f5cb 100644
--- a/block/cfq-iosched.c
+++ b/block/cfq-iosched.c
@@ -573,14 +573,21 @@ static inline void cfqg_put(struct cfq_group *cfqg)
573 return blkg_put(cfqg_to_blkg(cfqg)); 573 return blkg_put(cfqg_to_blkg(cfqg));
574} 574}
575 575
576#define cfq_log_cfqq(cfqd, cfqq, fmt, args...) \ 576#define cfq_log_cfqq(cfqd, cfqq, fmt, args...) do { \
577 char __pbuf[128]; \
578 \
579 blkg_path(cfqg_to_blkg((cfqq)->cfqg), __pbuf, sizeof(__pbuf)); \
577 blk_add_trace_msg((cfqd)->queue, "cfq%d%c %s " fmt, (cfqq)->pid, \ 580 blk_add_trace_msg((cfqd)->queue, "cfq%d%c %s " fmt, (cfqq)->pid, \
578 cfq_cfqq_sync((cfqq)) ? 'S' : 'A', \ 581 cfq_cfqq_sync((cfqq)) ? 'S' : 'A', \
579 blkg_path(cfqg_to_blkg((cfqq)->cfqg)), ##args) 582 __pbuf, ##args); \
580 583} while (0)
581#define cfq_log_cfqg(cfqd, cfqg, fmt, args...) \ 584
582 blk_add_trace_msg((cfqd)->queue, "%s " fmt, \ 585#define cfq_log_cfqg(cfqd, cfqg, fmt, args...) do { \
583 blkg_path(cfqg_to_blkg((cfqg))), ##args) \ 586 char __pbuf[128]; \
587 \
588 blkg_path(cfqg_to_blkg(cfqg), __pbuf, sizeof(__pbuf)); \
589 blk_add_trace_msg((cfqd)->queue, "%s " fmt, __pbuf, ##args); \
590} while (0)
584 591
585static inline void cfqg_stats_update_io_add(struct cfq_group *cfqg, 592static inline void cfqg_stats_update_io_add(struct cfq_group *cfqg,
586 struct cfq_group *curr_cfqg, int rw) 593 struct cfq_group *curr_cfqg, int rw)