CIFS file oplock not released immediately after the write on RHEL 9.2 client
Issue
-
CIFS File oplock not released immediately after the write on RHEL 9.2 client.
-
Below messages reported in the log file after enabling CIFS debugging on RHEL 9.2 client while accessing the same file on RHEL 9.4 client:
[Thu Dec 26 16:59:03 2024] CIFS: fs/cifs/smb2misc.c: Checking for oplock break
[Thu Dec 26 16:59:03 2024] CIFS: fs/cifs/smb2misc.c: Checking for lease break
[Thu Dec 26 16:59:03 2024] CIFS: fs/cifs/smb2misc.c: found in the open list
[Thu Dec 26 16:59:03 2024] CIFS: fs/cifs/smb2misc.c: lease key match, lease break 0x3
[Thu Dec 26 16:59:03 2024] CIFS: fs/cifs/connect.c: Received oplock break
[Thu Dec 26 16:59:03 2024] CIFS: fs/cifs/smb2ops.c: RH Lease granted on inode 00000000e0162b6a
[Thu Dec 26 16:59:03 2024] CIFS: fs/cifs/file.c: Oplock flush inode 00000000e0162b6a rc 0
[Thu Dec 26 16:59:03 2024] CIFS: fs/cifs/smb2file.c: VFS: in smb2_push_mandatory_locks as Xid: 55 with uid: 0
[Thu Dec 26 16:59:03 2024] CIFS: fs/cifs/smb2file.c: VFS: leaving smb2_push_mandatory_locks (xid = 55) rc = 0
[Thu Dec 26 16:59:03 2024] CIFS: fs/cifs/file.c: VFS: in _cifsFileInfo_put as Xid: 56 with uid: 0
[Thu Dec 26 16:59:03 2024] CIFS: fs/cifs/smb2pdu.c: Close
[Thu Dec 26 16:59:29 2024] CIFS: fs/cifs/file.c: VFS: in _cifsFileInfo_put as Xid: 57 with uid: 0
[Thu Dec 26 16:59:29 2024] CIFS: fs/cifs/smb2pdu.c: Close
Environment
- Red Hat Enterprise Linux 9.2
- CIFS
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.