diff options
| author | Jeff Layton <jlayton@kernel.org> | 2026-06-11 16:00:56 -0400 |
|---|---|---|
| committer | Chuck Lever <cel@kernel.org> | 2026-08-10 09:54:35 -0400 |
| commit | 0a5a548861ab09e79a6b3062ac17e410323af3cd (patch) | |
| tree | d743836a4ca4f5119e4bf02cca7334f3600d425e /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | 09ea3eb9a518565f5bca386e81b993ed8825f5e8 (diff) | |
nfsd: use test_and_clear_bit for somebody_reclaimed to prevent lost update
clients_still_reclaiming() uses separate test_bit() and clear_bit()
calls on NFSD_NET_SOMEBODY_RECLAIMED. A concurrent set_bit() from
the OPEN or LOCK reclaim path arriving between the test and clear
is silently lost, causing the next laundromat tick to end grace
prematurely.
Replace with test_and_clear_bit() to make the read-and-clear atomic.
Fixes: 8c67a210c90c ("nfsd: convert nfsd_net boolean flags to unsigned long flags word")
Cc: stable@vger.kernel.org
Assisted-by: Claude:claude-opus-4-8
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Link: https://patch.msgid.link/20260611-nfsd-testing-v2-13-5b90e276f2d9@kernel.org
Signed-off-by: Chuck Lever <cel@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions
