diff options
author | Robert Elliott <elliott@hp.com> | 2014-08-27 11:50:31 -0400 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2014-10-13 10:34:21 -0400 |
commit | ef3ecb66bcd6b2076dc8782e1315cf2807b73c0c (patch) | |
tree | e6ad2491465bbd6988fd10a975d96a20fff3688a /block | |
parent | 764f612c6c3c231b9c12cfae7c328ccc9c453258 (diff) |
block: make blk_update_request print prefix match ratelimited prefix
In blk_update_request, change the printk_ratelimited
prefix from end_request to blk_update_request so it
matches the name printed if rate limiting occurs.
Old:
[10234.933106] blk_update_request: 174 callbacks suppressed
[10234.934940] end_request: critical target error, dev sdr, sector 16
[10234.949788] end_request: critical target error, dev sdr, sector 16
New:
[16863.445173] blk_update_request: 398 callbacks suppressed
[16863.447029] blk_update_request: critical target error, dev sdr, sector
1442066176
[16863.449383] blk_update_request: critical target error, dev sdr, sector
802802888
[16863.451680] blk_update_request: critical target error, dev sdr, sector
1609535456
Signed-off-by: Robert Elliott <elliott@hp.com>
Reviewed-by: Webb Scales <webbnh@hp.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block')
-rw-r--r-- | block/blk-core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/block/blk-core.c b/block/blk-core.c index ffcb47af35f3..ecc124ec53bb 100644 --- a/block/blk-core.c +++ b/block/blk-core.c | |||
@@ -2444,8 +2444,8 @@ bool blk_update_request(struct request *req, int error, unsigned int nr_bytes) | |||
2444 | error_type = "I/O"; | 2444 | error_type = "I/O"; |
2445 | break; | 2445 | break; |
2446 | } | 2446 | } |
2447 | printk_ratelimited(KERN_ERR "end_request: %s error, dev %s, sector %llu\n", | 2447 | printk_ratelimited(KERN_ERR "%s: %s error, dev %s, sector %llu\n", |
2448 | error_type, req->rq_disk ? | 2448 | __func__, error_type, req->rq_disk ? |
2449 | req->rq_disk->disk_name : "?", | 2449 | req->rq_disk->disk_name : "?", |
2450 | (unsigned long long)blk_rq_pos(req)); | 2450 | (unsigned long long)blk_rq_pos(req)); |
2451 | 2451 | ||