summaryrefslogtreecommitdiff
path: root/drivers/infiniband/hw/ionic/ionic_admin.c
diff options
context:
space:
mode:
authorPetr Mladek <pmladek@suse.com>2025-07-02 11:51:55 +0200
committerPetr Mladek <pmladek@suse.com>2025-07-10 17:11:57 +0200
commit254e8fb5e67643a19a8dd6e142262ec83b30c3c7 (patch)
treecab54922be8992be38078df31e1c400a6916b8b2 /drivers/infiniband/hw/ionic/ionic_admin.c
parent5ea2bcdfbf46fc3aac239ea371a9561053cc977a (diff)
printk: ringbuffer: Explain why the KUnit test ignores failed writes
The KUnit test ignores prb_reserve() failures on purpose. It tries to push the ringbuffer beyond limits. Note that it is a know problem that writes might fail in this situation. printk() tries to prevent this problem by: + allocating big enough data buffer, see log_buf_add_cpu(). + allocating enough descriptors by using small enough average record, see PRB_AVGBITS. + storing the record with disabled interrupts, see vprintk_store(). Also the amount of printk() messages is always somehow bound in practice. And they are serialized when they are printed from many CPUs on purpose, for example, when printing backtraces. Reviewed-by: John Ogness <john.ogness@linutronix.de> Reviewed-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de> Link: https://patch.msgid.link/20250702095157.110916-2-pmladek@suse.com Signed-off-by: Petr Mladek <pmladek@suse.com>
Diffstat (limited to 'drivers/infiniband/hw/ionic/ionic_admin.c')
0 files changed, 0 insertions, 0 deletions