Re: [PATCH] fuse: set ff->flock only on success

From: Miklos Szeredi

Date: Tue Jan 27 2026 - 05:04:20 EST


On Thu, 25 Dec 2025 at 12:12, Zhang Tianci
<zhangtianci.1997@xxxxxxxxxxxxx> wrote:
>
> If FUSE_SETLK fails (e.g., due to EWOULDBLOCK), we shall not set
> FUSE_RELEASE_FLOCK_UNLOCK in fuse_file_release().

It's not clear if this is an optimization, a correctness fix or neither?

Thanks,
Miklos