diff options
author | J. Bruce Fields <bfields@redhat.com> | 2015-08-06 19:47:02 +0300 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2015-08-13 17:22:06 +0300 |
commit | c87fb4a378f93f114b9906e180d83877cee4e7f4 (patch) | |
tree | 79af8260a9b9788247e37650fee5837799791723 /include/linux/fs.h | |
parent | 4bc6603778e473938ae815123b786e724084790c (diff) | |
download | linux-c87fb4a378f93f114b9906e180d83877cee4e7f4.tar.xz |
lockd: NLM grace period shouldn't block NFSv4 opens
NLM locks don't conflict with NFSv4 share reservations, so we're not
going to learn anything new by watiting for them.
They do conflict with NFSv4 locks and with delegations.
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r-- | include/linux/fs.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index cc008c338f5a..9a9d314f7b27 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -942,12 +942,18 @@ struct lock_manager_operations { struct lock_manager { struct list_head list; + /* + * NFSv4 and up also want opens blocked during the grace period; + * NLM doesn't care: + */ + bool block_opens; }; struct net; void locks_start_grace(struct net *, struct lock_manager *); void locks_end_grace(struct lock_manager *); int locks_in_grace(struct net *); +int opens_in_grace(struct net *); /* that will die - we need it for nfs_lock_info */ #include <linux/nfs_fs_i.h> |