lockd: set fl_owner when unlocking files
authorJeff Layton <jlayton@kernel.org>
Mon, 11 Jul 2022 18:30:13 +0000 (14:30 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 21 Jul 2022 19:24:24 +0000 (21:24 +0200)
commit9c3eef773cf4a8a18f959234bbb4c0a55c31ab71
tree8b815e9c7d7fe150931c463247fb13973619c47d
parent1e92426e2b3ac0c43e469250e7b50f2634d16ed3
lockd: set fl_owner when unlocking files

[ Upstream commit aec158242b87a43d83322e99bc71ab4428e5ab79 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/lockd/svcsubs.c