]> git.ipfire.org Git - people/ms/linux.git/commit - fs/lockd/svcsubs.c
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)
commit7f024fcd5c97dc70bb9121c80407cf3cf9be7159
tree069bd48a61ba4d33bd1f981e3e9d616c262030b5
parentb661601a9fdf1af8516e1100de8bba84bd41cca4
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