On Wed, Nov 4, 2026, at 2:59 PM, Christian Brauner wrote: > Implement ->proc_read_buf() for the procfs channel, flush, > use-gss-proxy and gss_krb5_enctypes files so procfs copies what is read > to userspace after it unpinned the entry. > > cache_read() takes an iov_iter now. The rpc_pipefs channel file passes > one for the user buffer and behaves like before. The procfs one passes > one for procfs' buffer, and a read still hands out at most one request. > A reader of the procfs channel file whose copy out fails, a readv() > with a bad later segment included, loses what was handed out, since the > request moves on before procfs copies it out. If that was only part of > a request the next read returns the rest of it. Both flush files share > flush_time_text(). > > The procfs files are removed when the network namespace goes away and > that no longer waits for a reader that faults on its buffer. > > Signed-off-by: Christian Brauner (Amutable) <[email protected]> Acked-by: Chuck Lever <[email protected]> -- Chuck Lever (Come to NFS bake-a-thon! https://nfsv4bat.org)
- [PATCH RESEND v2 22/23] PNP: pnpbios: let procfs co... Christian Brauner
- [PATCH RESEND v2 07/23] powerpc/rtasd: let procfs o... Christian Brauner
- [PATCH RESEND v2 00/13] proc: convert the net entries an... Christian Brauner
- [PATCH RESEND v2 01/13] atm: let procfs copy out re... Christian Brauner
- [PATCH RESEND v2 02/13] l2tp: let procfs own the se... Christian Brauner
- [PATCH RESEND v2 03/13] net: pktgen: let procfs cop... Christian Brauner
- [PATCH RESEND v2 05/13] netfilter: xt_recent: let p... Christian Brauner
- [PATCH RESEND v2 07/13] SUNRPC: let procfs copy in ... Christian Brauner
- [PATCH RESEND v2 08/13] SUNRPC: let procfs copy out... Christian Brauner
- Re: [PATCH RESEND v2 08/13] SUNRPC: let procfs ... Chuck Lever
- [PATCH RESEND v2 12/13] samples/kfifo: let procfs c... Christian Brauner
- [PATCH RESEND v2 13/13] selftests/proc: check that ... Christian Brauner
- [PATCH RESEND v2 09/13] SUNRPC: drop the ioctl of t... Christian Brauner
- [PATCH RESEND v2 10/13] SUNRPC: let procfs own the ... Christian Brauner
- [PATCH RESEND v2 04/13] netfilter: xt_recent: let p... Christian Brauner
- [PATCH RESEND v2 06/13] SUNRPC: let procfs own the ... Christian Brauner
- [PATCH RESEND v2 11/13] samples/kfifo: let procfs c... Christian Brauner
- [PATCH RESEND v2 0/6] proc: drop the __user methods (Par... Christian Brauner
- [PATCH RESEND v2 1/6] proc: drop ->proc_write() Christian Brauner
