]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
netconsole: Split userdata and sysdata
authorGustavo Luiz Duarte <gustavold@gmail.com>
Thu, 20 Nov 2025 00:14:50 +0000 (16:14 -0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 21 Nov 2025 02:47:18 +0000 (18:47 -0800)
commit9dc10f50c430d861d4f3d5d0b38efd675f6d76ae
treeccc65d6c9e6df187fba42d9be1e52c6a96b5186d
parent7279b718b431701137f9943434229915222a70b8
netconsole: Split userdata and sysdata

Separate userdata and sysdata into distinct buffers to enable independent
management. Previously, both were stored in a single extradata_complete
buffer with a fixed size that accommodated both types of data.

This separation allows:
- userdata to grow dynamically (in subsequent patch)
- sysdata to remain in a small static buffer
- removal of complex entry counting logic that tracked both types together

The split also simplifies the code by eliminating the need to check total
entry count across both userdata and sysdata when enabling features,
which allows to drop holding su_mutex on sysdata_*_enabled_store().

No functional change in this patch, just structural preparation for
dynamic userdata allocation.

Signed-off-by: Gustavo Luiz Duarte <gustavold@gmail.com>
Reviewed-by: Breno Leitao <leitao@debian.org>
Link: https://patch.msgid.link/20251119-netconsole_dynamic_extradata-v3-2-497ac3191707@meta.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/netconsole.c