Re: [PATCH RESEND v2 10/13] SUNRPC: let procfs own the wait queue of the procfs channel files
From: Chuck Lever
Date: Sat Nov 07 2026 - 13:30:31 EST
On Wed, Nov 4, 2026, at 4:13 PM, Christian Brauner wrote:
> cache_poll() sleeps the poller on queue_wait, which went back to being
> a static queue so that a poll() on a procfs channel file can't be left
> on the queue of a cache_detail that its network namespace freed. procfs
> owns the queue poll() uses now and it outlives the file, so the procfs
> channel files leave the poll_wait() to procfs and an upcall wakes their
> pollers through proc_poll_notify(). The channel entry is remembered in
> the cache_detail for that and forgotten before the entries are removed.
> The rpc_pipefs files keep sleeping on queue_wait, procfs has nothing to
> do with them.
>
> Signed-off-by: Christian Brauner (Amutable) <brauner@xxxxxxxxxx>
> ---
Acked-by: Chuck Lever <cel@xxxxxxxxxx>
--
Chuck Lever (Come to NFS bake-a-thon! https://nfsv4bat.org)