[PATCH RFC 03/27] lockd: let procfs copy in writes to nlm_end_grace
Chuck Lever
cel at kernel.org
Mon Nov 2 07:23:34 PST 2026
On Mon, Nov 2, 2026, at 10:07 AM, Christian Brauner wrote:
> Implement ->proc_write_buf() so procfs copies in what is written before
> it pins the entry. simple_transaction_get() was only used to get a copy
> of what was written, so look at procfs' copy instead and drop the
> transaction. A second write to the same file doesn't fail with -EBUSY
> anymore. Writes larger than PAGE_SIZE - 1 bytes fail with -EINVAL from
> procfs instead of -EFBIG from simple_transaction_get(), which refused a
> few bytes less.
>
> Signed-off-by: Christian Brauner (Amutable) <brauner at kernel.org>
Acked-by: Chuck Lever <cel at kernel.org>
--
Chuck Lever (Come to NFS bake-a-thon! https://nfsv4bat.org)
More information about the linux-um
mailing list