diff options
author | NeilBrown <[email protected]> | 2024-10-28 09:04:43 +1100 |
---|---|---|
committer | Chuck Lever <[email protected]> | 2024-11-18 20:23:08 -0500 |
commit | 6a404f475f65c3b74799f4652dc15753834b3be0 (patch) | |
tree | a11f7fc4197aaa2e080afa7a477d52895e5d73a4 /tools/perf/scripts/python/libxed.py | |
parent | a2c0412c051ee279d338b2c288938e484ed9a6df (diff) |
nfsd: make use of warning provided by refcount_t
refcount_t, by design, checks for unwanted situations and provides
warnings. It is rarely useful to have explicit warnings with refcount
usage.
In this case we have an explicit warning if a refcount_t reaches zero
when decremented. Simply using refcount_dec() will provide a similar
warning and also mark the refcount_t as saturated to avoid any possible
use-after-free.
This patch drops the warning and uses refcount_dec() instead of
refcount_dec_and_test().
Signed-off-by: NeilBrown <[email protected]>
Reviewed-by: Jeff Layton <[email protected]>
Signed-off-by: Chuck Lever <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions