diff options
| author | 2021-08-23 16:44:00 -0400 | |
|---|---|---|
| committer | 2021-08-23 18:05:31 -0400 | |
| commit | 7f024fcd5c97dc70bb9121c80407cf3cf9be7159 (patch) | |
| tree | 069bd48a61ba4d33bd1f981e3e9d616c262030b5 /include/linux/lockd/bind.h | |
| parent | lockd: update nlm_lookup_file reexport comment (diff) | |
| download | linux-dev-7f024fcd5c97dc70bb9121c80407cf3cf9be7159.tar.xz linux-dev-7f024fcd5c97dc70bb9121c80407cf3cf9be7159.zip | |
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>
Diffstat (limited to 'include/linux/lockd/bind.h')
| -rw-r--r-- | include/linux/lockd/bind.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/lockd/bind.h b/include/linux/lockd/bind.h index 0520c0cd73f4..3bc9f7410e21 100644 --- a/include/linux/lockd/bind.h +++ b/include/linux/lockd/bind.h @@ -27,7 +27,8 @@ struct rpc_task; struct nlmsvc_binding { __be32 (*fopen)(struct svc_rqst *, struct nfs_fh *, - struct file **); + struct file **, + int mode); void (*fclose)(struct file *); }; |
