]> git.baikalelectronics.ru Git - kernel.git/commit
Keep read and write fds with each nlm_file
authorJ. Bruce Fields <bfields@redhat.com>
Mon, 23 Aug 2021 20:44:00 +0000 (16:44 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 23 Aug 2021 22:05:31 +0000 (18:05 -0400)
commit649a9a0eb60ab0c0eb10c81768534092263f7933
tree069bd48a61ba4d33bd1f981e3e9d616c262030b5
parentff1fa48a474cec113b103e34da8d689dbcb6a021
Keep read and write fds with each nlm_file

We shouldn't really be using a read-only file descriptor to take a write
lock.

Most filesystems will put up with it.  But NFS, for example, won't.

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/lockd/svc4proc.c
fs/lockd/svclock.c
fs/lockd/svcproc.c
fs/lockd/svcsubs.c
fs/nfsd/lockd.c
include/linux/lockd/bind.h
include/linux/lockd/lockd.h