]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
PCI/sysfs: Suppress FW_BUG warning when NUMA node already matches
authorLi RongQing <lirongqing@baidu.com>
Tue, 17 Mar 2026 00:28:03 +0000 (20:28 -0400)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 30 Mar 2026 21:46:51 +0000 (16:46 -0500)
commit47e2a338222c902dc44f4f6e29eb236a68600ef4
treea6aeb2bdfaa4313fd2c9bef11b1675a910bf2401
parent0026bb20d12531ca2925b60bf081cc8be910ccf9
PCI/sysfs: Suppress FW_BUG warning when NUMA node already matches

The numa_node sysfs interface allows users to manually override a PCI
device's NUMA node assignment. Currently, every write triggers a FW_BUG
warning and taints the kernel, even when writing the same value that is
already set.

Check if the requested node is already assigned to the device. If it
matches, return success immediately without tainting the kernel or printing
a warning.

Signed-off-by: Li RongQing <lirongqing@baidu.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Link: https://patch.msgid.link/20260317002803.2353-1-lirongqing@baidu.com
drivers/pci/pci-sysfs.c