diff options
author | Tetsuo Handa <penguin-kernel@i-love.sakura.ne.jp> | 2021-11-29 19:00:43 +0900 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-11-29 06:44:45 -0700 |
commit | e3f9387aea67742b9d1f4de8e5bb2fd08a8a4584 (patch) | |
tree | 3869740b69b49283913409a14ffb2e9a92b88909 /drivers/block | |
parent | d422f40163087408b56290156ba233fc5ada53e4 (diff) | |
download | linux-stable-e3f9387aea67742b9d1f4de8e5bb2fd08a8a4584.tar.gz linux-stable-e3f9387aea67742b9d1f4de8e5bb2fd08a8a4584.tar.bz2 linux-stable-e3f9387aea67742b9d1f4de8e5bb2fd08a8a4584.zip |
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 <oliver.sang@intel.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/block')
-rw-r--r-- | drivers/block/loop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/loop.c b/drivers/block/loop.c index a154cab6cd98..c3a36cfaa855 100644 --- a/drivers/block/loop.c +++ b/drivers/block/loop.c @@ -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; } |