diff options
Diffstat (limited to 'block/blk-core.c')
| -rw-r--r-- | block/blk-core.c | 8 | 
1 files changed, 5 insertions, 3 deletions
diff --git a/block/blk-core.c b/block/blk-core.c index 4b4dbdfbca8..ee3cb3a5e27 100644 --- a/block/blk-core.c +++ b/block/blk-core.c @@ -2254,9 +2254,11 @@ bool blk_update_request(struct request *req, int error, unsigned int nr_bytes)  			error_type = "I/O";  			break;  		} -		printk(KERN_ERR "end_request: %s error, dev %s, sector %llu\n", -		       error_type, req->rq_disk ? req->rq_disk->disk_name : "?", -		       (unsigned long long)blk_rq_pos(req)); +		printk_ratelimited(KERN_ERR "end_request: %s error, dev %s, sector %llu\n", +				   error_type, req->rq_disk ? +				   req->rq_disk->disk_name : "?", +				   (unsigned long long)blk_rq_pos(req)); +  	}  	blk_account_io_completion(req, nr_bytes);  |