From: Dave Kleikamp Date: Mon, 26 Sep 2011 21:33:32 +0000 (-0700) Subject: block: Rate-limit failed I/O error message X-Git-Tag: v2.6.39-400.9.0~889 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=48fd049cfd9468f3fb1cbf4f1094940605fbf0e9;p=users%2Fjedix%2Flinux-maple.git block: Rate-limit failed I/O error message Signed-off-by: Guru Anbalagane --- diff --git a/block/blk-core.c b/block/blk-core.c index 1d49e1c7c905..feae83a2a544 100644 --- a/block/blk-core.c +++ b/block/blk-core.c @@ -2028,7 +2028,7 @@ bool blk_update_request(struct request *req, int error, unsigned int nr_bytes) req->errors = 0; if (error && req->cmd_type == REQ_TYPE_FS && - !(req->cmd_flags & REQ_QUIET)) { + !(req->cmd_flags & REQ_QUIET) && printk_ratelimit()) { char *error_type; switch (error) {