aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/fs.h
diff options
context:
space:
mode:
authorJ. Bruce Fields <bfields@redhat.com>2015-08-06 12:47:02 -0400
committerJ. Bruce Fields <bfields@redhat.com>2015-08-13 10:22:06 -0400
commitc87fb4a378f93f114b9906e180d83877cee4e7f4 (patch)
tree79af8260a9b9788247e37650fee5837799791723 /include/linux/fs.h
parent4bc6603778e473938ae815123b786e724084790c (diff)
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.h6
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 {
942 942
943struct lock_manager { 943struct lock_manager {
944 struct list_head list; 944 struct list_head list;
945 /*
946 * NFSv4 and up also want opens blocked during the grace period;
947 * NLM doesn't care:
948 */
949 bool block_opens;
945}; 950};
946 951
947struct net; 952struct net;
948void locks_start_grace(struct net *, struct lock_manager *); 953void locks_start_grace(struct net *, struct lock_manager *);
949void locks_end_grace(struct lock_manager *); 954void locks_end_grace(struct lock_manager *);
950int locks_in_grace(struct net *); 955int locks_in_grace(struct net *);
956int opens_in_grace(struct net *);
951 957
952/* that will die - we need it for nfs_lock_info */ 958/* that will die - we need it for nfs_lock_info */
953#include <linux/nfs_fs_i.h> 959#include <linux/nfs_fs_i.h>