Re: [PATCH RFC 03/27] lockd: let procfs copy in writes to nlm_end_grace

From: Chuck Lever

Date: Mon Nov 02 2026 - 14:24:55 EST




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@xxxxxxxxxx>

Acked-by: Chuck Lever <cel@xxxxxxxxxx>


--
Chuck Lever (Come to NFS bake-a-thon! https://nfsv4bat.org)