Re: [PATCH v4] nfsd: close shrinker/GC/fsnotify vs per-net shutdown race in filecache
From: Chuck Lever
Date: Thu Jun 04 2026 - 12:13:28 EST
From: Chuck Lever <chuck.lever@xxxxxxxxxx>
On Thu, 04 Jun 2026 10:31:09 -0400, Jeff Layton wrote:
> The shrinker, GC worker, and fsnotify/lease callbacks can unhash an
> nfsd_file from the rhashtable and then call
> nfsd_file_dispose_list_delayed() to move it to the per-net dispose list.
> If nfsd_file_cache_shutdown_net() runs concurrently, its rhashtable walk
> misses the already-unhashed file, and its drain of the per-net dispose
> list can run before the file has been queued. The file then sits on
> the per-net list with no thread to drain it, leaking both the file and
> its associated state.
>
> [...]
Applied to nfsd-testing, thanks!
[1/1] nfsd: close shrinker/GC/fsnotify vs per-net shutdown race in filecache
commit: 2f8b2f5b13f99fdd76a434ab284e09dbc7afb212
--
Chuck Lever <chuck.lever@xxxxxxxxxx>