Re: [RFC PATCH v2 9/9] ksmbd: avoid self oplock breaks for EA opens
From: tanze
Date: Mon Jul 20 2026 - 04:54:40 EST
You are right, my handling here is flawed. The logic cannot rely solely on matching sessions, as a single SMB session can hold multiple independent file open handles.
I will remove the session-based special exception logic on the server side and rework the complete fix on the client side.
在 2026/7/20 13:34, Namjae Jeon 写道:
On Fri, Jul 17, 2026 at 12:40 PM Ze Tan <tanze@xxxxxxxxxx> wrote:
generic/093 writes to a file after setcap sets security.capability. TheA session can own multiple independent opens. Why is session identity
CIFS client can reopen the file to query or update EAs while the same
session holds an oplock. ksmbd breaks this oplock and waits for the same
client, so the write can block.
Skip the oplock break for same-session EA or metadata opens. Keep the
normal break when another session holds an oplock.
sufficient to conclude that an EA/metadata-only open may bypass the
existing exclusive or batch oplock break? Oplock state and break
notifications are associated with an individual open, rather
than the session as a whole. Could you point to the SMB specification text ?