lockd: set fl_owner when unlocking files
authorJeff Layton <jlayton@kernel.org>
Mon, 11 Jul 2022 18:30:13 +0000 (14:30 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 11 Jul 2022 19:49:56 +0000 (15:49 -0400)
commitaec158242b87a43d83322e99bc71ab4428e5ab79
tree2d284f31425edc83e77ef441a8516d56de361292
parent5b2f3e0777da2a5dd62824bbe2fdab1d12caaf8f
lockd: set fl_owner when unlocking files

Unlocking a POSIX lock on an inode with vfs_lock_file only works if
the owner matches. Ensure we set it in the request.

Cc: J. Bruce Fields <bfields@fieldses.org>
Fixes: 7f024fcd5c97 ("Keep read and write fds with each nlm_file")
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/lockd/svcsubs.c