refscale: Prevent buffer to pr_alert() being too long
authorLi Zhijian <lizhijian@cn.fujitsu.com>
Mon, 25 Oct 2021 03:26:57 +0000 (11:26 +0800)
committerPaul E. McKenney <paulmck@kernel.org>
Wed, 1 Dec 2021 01:29:50 +0000 (17:29 -0800)
commit9880eb878c315b241002d43d7ff89df23713a51b
tree7fff07967678053f4d34ebb63ff1bba9d85ccf37
parentc30c876312f66b0422a1d632b8c45b6416deeec0
refscale: Prevent buffer to pr_alert() being too long

0Day/LKP observed that the refscale results fail to complete when larger
values of nrun (such as 300) are specified.  The problem is that printk()
can accept at most a 1024-byte buffer.  This commit therefore prints
the buffer whenever its length exceeds 800 bytes.

CC: Philip Li <philip.li@intel.com>
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Li Zhijian <lizhijian@cn.fujitsu.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/rcu/refscale.c