summaryrefslogtreecommitdiffstats
path: root/kernel/drivers/block/nbd.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/drivers/block/nbd.c')
-rw-r--r--kernel/drivers/block/nbd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/drivers/block/nbd.c b/kernel/drivers/block/nbd.c
index 93b3f99b6..8f1ce6d57 100644
--- a/kernel/drivers/block/nbd.c
+++ b/kernel/drivers/block/nbd.c
@@ -618,8 +618,8 @@ static void nbd_request_handler(struct request_queue *q)
req, req->cmd_type);
if (unlikely(!nbd->sock)) {
- dev_err(disk_to_dev(nbd->disk),
- "Attempted send on closed socket\n");
+ dev_err_ratelimited(disk_to_dev(nbd->disk),
+ "Attempted send on closed socket\n");
req->errors++;
nbd_end_request(nbd, req);
spin_lock_irq(q->queue_lock);