Skip to content

Commit e3f9387

Browse files
Tetsuo Handaaxboe
authored andcommitted
loop: Use pr_warn_once() for loop_control_remove() warning
kernel test robot reported that RCU stall via printk() flooding is possible [1] when stress testing. Link: https://lkml.kernel.org/r/20211129073709.GA18483@xsang-OptiPlex-9020 [1] Reported-by: kernel test robot <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Signed-off-by: Tetsuo Handa <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
1 parent d422f40 commit e3f9387

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/block/loop.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2103,7 +2103,7 @@ static int loop_control_remove(int idx)
21032103
int ret;
21042104

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

0 commit comments

Comments
 (0)