]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
smb: client: add tracepoint for local lock conflicts
authorBharath SM <bharathsm@microsoft.com>
Tue, 14 Apr 2026 16:18:03 +0000 (21:48 +0530)
committerSteve French <stfrench@microsoft.com>
Tue, 14 Apr 2026 18:04:21 +0000 (13:04 -0500)
commitafab3f61aeb19693109e8a71028c7b0c8088f452
tree8ec03fc143d6088a282423067366bab4701be766
parenteb4d3691fc9bf3687026daa8ec2cf32cfd962a11
smb: client: add tracepoint for local lock conflicts

Add smb3_lock_conflict tracepoint that fires when a byte-range
lock request conflicts with an existing cached lock. This helps
debug lock contention issues when locks are cached locally due
to oplocks/leases.

The trace includes both the requested and conflicting lock details:
- Requested: offset, length, type
- Conflicting: offset, length, type, pid (lock holder)

Signed-off-by: Bharath SM <bharathsm@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/file.c
fs/smb/client/trace.h