Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: e567b98 (“nfsd: protect concurrent access to nfsd stats counters”) Signed-off-by: Julian Schroeder <[email protected]> Signed-off-by: Chuck Lever <[email protected]>
- Loading branch information