2009-09-01 08:00:36

by Shan Wei

[permalink] [raw]
Subject: [PATCH]cfq: fix the log message after dispatched a request

The blktrace tools can show process id when cfq dispatched a request,
using cfq_log_cfqq() instead of cfq_log().


Signed-off-by: Shan Wei <[email protected]>
---
block/cfq-iosched.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/block/cfq-iosched.c b/block/cfq-iosched.c
index fd7080e..150c9dd 100644
--- a/block/cfq-iosched.c
+++ b/block/cfq-iosched.c
@@ -1362,7 +1362,7 @@ static int cfq_dispatch_requests(struct request_queue *q, int force)
cfq_slice_expired(cfqd, 0);
}

- cfq_log(cfqd, "dispatched a request");
+ cfq_log_cfqq(cfqd, cfqq, "dispatched a request");
return 1;
}

--
1.6.0.4


2009-09-01 08:06:39

by Jens Axboe

[permalink] [raw]
Subject: Re: [PATCH]cfq: fix the log message after dispatched a request

On Tue, Sep 01 2009, Shan Wei wrote:
> The blktrace tools can show process id when cfq dispatched a request,
> using cfq_log_cfqq() instead of cfq_log().

Thanks, queued for 2.6.32.

--
Jens Axboe