diff options
author | 2022-11-11 06:46:52 -0500 | |
---|---|---|
committer | 2022-11-17 05:21:00 -0500 | |
commit | 7e8e5cc818bd93ee7f2699676f2e5b30d26d83f8 (patch) | |
tree | 4c3a450de593b4d4d5b2716b7283a4af76dff7f6 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | Linux 6.1-rc5 (diff) | |
download | wireguard-linux-7e8e5cc818bd93ee7f2699676f2e5b30d26d83f8.tar.xz wireguard-linux-7e8e5cc818bd93ee7f2699676f2e5b30d26d83f8.zip |
filelock: WARN_ON_ONCE when ->fl_file and filp don't match
vfs_lock_file, vfs_test_lock and vfs_cancel_lock all take both a struct
file argument and a file_lock. The file_lock has a fl_file field in it
howevever and it _must_ match the file passed in.
While most of the locks.c routines use the separately-passed file
argument, some filesystems rely on fl_file being filled out correctly.
I'm working on a patch series to remove the redundant argument from
these routines, but for now, let's ensure that the callers always set
this properly by issuing a WARN_ON_ONCE if they ever don't match.
Cc: Chuck Lever <chuck.lever@oracle.com>
Cc: Trond Myklebust <trondmy@hammerspace.com>
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions