]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb1f95f2544249ad01af20bc5d97151ba439efe73
tree8b815e9c7d7fe150931c463247fb13973619c47d
parent6683292c3324561631c79ec2cac75a2e6065b15f
lockd: set fl_owner when unlocking files

[ Upstream commit c3d0160a3d47d2858845caa3880abab3a6dae78a ]

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: 649a9a0eb60a ("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