[PATCH RESEND v2 40/51] sunrpc: make queue_wait a global wait queue again

sashiko-bot at kernel.org sashiko-bot at kernel.org
Thu Nov 5 11:30:10 PST 2026


> Since commit 552d0e17ea04 ("sunrpc: convert queue_wait from global to
> per-cache-detail waitqueue") poll() and epoll queue their waiters for a
> channel file on the queue_wait head in struct cache_detail. But the
> cache_detail can be freed while its channel file is still open and
> waited on.
> 
> The procfs channel files of a network namespace are removed when the
> namespace goes away. Removing a procfs file waits for the callers that
> are in one of its methods right now and then calls ->release on every
> file that is still open (cf. close_pdeo()). The waiters that poll() and
> epoll left on the head stay queued until their file is really closed.
> So:
> 
>   sunrpc_exit_net()
>   -> ip_map_cache_destroy()
> [ ... ]
> Reported-by: Chris Mason <mason at kernel.org>
> Fixes: 552d0e17ea04 ("sunrpc: convert queue_wait from global to per-cache-detail waitqueue")
> Acked-by: Chuck Lever <cel at kernel.org>
> Cc: stable at vger.kernel.org
> Signed-off-by: Christian Brauner (Amutable) <brauner at kernel.org>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261104-work-procfs-bugfixes-v2-0-021c84d852e0@kernel.org?part=40




More information about the kexec mailing list