diff options
| author | Julian Schroeder <[email protected]> | 2022-05-23 18:52:26 +0000 |
|---|---|---|
| committer | Chuck Lever <[email protected]> | 2022-05-23 19:22:17 +0000 |
| commit | fd5e363eac77ef81542db77ddad0559fa0f9204e (patch) | |
| tree | f1cf441a789754d474b448a7b8f0faf7d8b0838c /scripts/clang-tools/gen_compile_commands.py | |
| parent | nfsd: Fix null-ptr-deref in nfsd_fill_super() (diff) | |
| download | kernel-fd5e363eac77ef81542db77ddad0559fa0f9204e.tar.gz kernel-fd5e363eac77ef81542db77ddad0559fa0f9204e.zip | |
nfsd: destroy percpu stats counters after reply cache shutdown
Upon nfsd shutdown any pending DRC cache is freed. DRC cache use is
tracked via a percpu counter. In the current code the percpu counter
is destroyed before. If any pending cache is still present,
percpu_counter_add is called with a percpu counter==NULL. This causes
a kernel crash.
The solution is to destroy the percpu counter after the cache is freed.
Fixes: e567b98ce9a4b (“nfsd: protect concurrent access to nfsd stats counters”)
Signed-off-by: Julian Schroeder <[email protected]>
Signed-off-by: Chuck Lever <[email protected]>
Diffstat (limited to 'scripts/clang-tools/gen_compile_commands.py')
0 files changed, 0 insertions, 0 deletions
