summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJustin Lai <justinlai0215@realtek.com>2026-06-03 14:18:16 +0800
committerJakub Kicinski <kuba@kernel.org>2026-06-04 08:52:24 -0700
commit9fc237f8d49f06d05f0f8e80361047b718894e81 (patch)
treeab50391bb55c0f30956fffb9c55b680a71df4640 /scripts
parent3a5f3f7aff18bcc36a57839cf50cf0cc8de707f3 (diff)
rtase: Avoid sleeping in get_stats64()
The .ndo_get_stats64 callback must not sleep because it can be called when reading /proc/net/dev. rtase_get_stats64() calls rtase_dump_tally_counter(), which polls the tally counter dump bit with read_poll_timeout(). This may sleep while waiting for the hardware counter dump to complete. Use read_poll_timeout_atomic() instead to avoid sleeping in the get_stats64() path. Fixes: 079600489960 ("rtase: Implement net_device_ops") Cc: stable@vger.kernel.org Signed-off-by: Justin Lai <justinlai0215@realtek.com> Link: https://patch.msgid.link/20260603061816.31356-1-justinlai0215@realtek.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions