Searched hist:"9 c147917" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/net/ethernet/hisilicon/hns3/ |
H A D | hns3_debugfs.c | 9c147917 Fri Nov 26 06:03:17 CST 2021 Hao Chen <chenhao288@hisilicon.com> net: hns3: fix one incorrect value of page pool info when queried by debugfs
Currently, when user queries page pool info by debugfs command "cat page_pool_info", the cnt of allocated page for page pool may be incorrect because of memory inconsistency problem caused by compiler optimization.
So this patch uses READ_ONCE() to read value of pages_state_hold_cnt to fix this problem.
Fixes: 850bfb912a6d ("net: hns3: debugfs add support dumping page pool info") Signed-off-by: Hao Chen <chenhao288@hisilicon.com> Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
|