Skip to content

Commit

Permalink
Merge tag 'block-5.16-2021-12-03' of git://git.kernel.dk/linux-block
Browse files Browse the repository at this point in the history
Pull block fix from Jens Axboe:
 "A single fix for repeated printk spam from loop"

* tag 'block-5.16-2021-12-03' of git://git.kernel.dk/linux-block:
  loop: Use pr_warn_once() for loop_control_remove() warning
  • Loading branch information
Linus Torvalds committed Dec 4, 2021
2 parents 8b9a022 + e3f9387 commit bbef3c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/block/loop.c
Original file line number Diff line number Diff line change
Expand Up @@ -2103,7 +2103,7 @@ static int loop_control_remove(int idx)
int ret;

if (idx < 0) {
pr_warn("deleting an unspecified loop device is not supported.\n");
pr_warn_once("deleting an unspecified loop device is not supported.\n");
return -EINVAL;
}

Expand Down

0 comments on commit bbef3c7

Please sign in to comment.