]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
filelock: pass current blocking lease to trace_break_lease_block() rather than "new_fl"
authorJeff Layton <jlayton@kernel.org>
Tue, 28 Apr 2026 07:09:45 +0000 (08:09 +0100)
committerChristian Brauner <brauner@kernel.org>
Fri, 15 May 2026 17:24:32 +0000 (19:24 +0200)
commit89330d3a60f7ddb9cf42873bb5249d6a736a0eab
treeda03804e46fb09943f973ad2b81a4d8c75890fda
parent254f49634ee16a731174d2ae34bc50bd5f45e731
filelock: pass current blocking lease to trace_break_lease_block() rather than "new_fl"

The break_lease_block tracepoint currently just shows the type of
"new_fl", which we can predict from the "flags" value. Switch it to
display info about "fl" instead, as that's the file_lease on which the
code is blocking.

For trace_break_lease_unblock(), pass it a NULL pointer. "fl" may have
been freed by that point, and passing it the info in new_fl is
deceptive.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
Link: https://patch.msgid.link/20260428-dir-deleg-v3-1-5a0780ba9def@kernel.org
Acked-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/locks.c