Skip to contentSkip to conversation

cfq: fix the log message after dispatched a request

PATCH In review Shan Wei 2 participants 2 messages Sep 1, 2009 Block layer

lore
Share & tools
lore

Shan Wei

author
#0 lore raw

PATCH 1/1 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().

---
 block/cfq-iosched.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
block/cfq-iosched.c +1 -1
index fd7080e..150c9dd 100644
@@ -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;
 }
 
Signature · 1 line
1.6.0.4
#1 lore raw
Quoted 2 lines · Shan Wei

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.

Signature · 1 line
Jens Axboe