diff options
author | Jeff Layton <jlayton@primarydata.com> | 2014-09-12 16:40:20 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2014-09-17 16:33:11 -0400 |
commit | f7790029655f79cdcee4fa7c7884e0c2795ebebe (patch) | |
tree | 9181503273f1355a506a7658ec0115c20c2047d0 /fs/Kconfig | |
parent | f0c63124a6165792f6e37e4b5983792d009e1ce8 (diff) |
lockd: move lockd's grace period handling into its own module
Currently, all of the grace period handling is part of lockd. Eventually
though we'd like to be able to build v4-only servers, at which point
we'll need to put all of this elsewhere.
Move the code itself into fs/nfs_common and have it build a grace.ko
module. Then, rejigger the Kconfig options so that both nfsd and lockd
enable it automatically.
Signed-off-by: Jeff Layton <jlayton@primarydata.com>
Diffstat (limited to 'fs/Kconfig')
-rw-r--r-- | fs/Kconfig | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/fs/Kconfig b/fs/Kconfig index 312393f32948..db5dc1598716 100644 --- a/fs/Kconfig +++ b/fs/Kconfig | |||
@@ -233,9 +233,13 @@ if NETWORK_FILESYSTEMS | |||
233 | source "fs/nfs/Kconfig" | 233 | source "fs/nfs/Kconfig" |
234 | source "fs/nfsd/Kconfig" | 234 | source "fs/nfsd/Kconfig" |
235 | 235 | ||
236 | config GRACE_PERIOD | ||
237 | tristate | ||
238 | |||
236 | config LOCKD | 239 | config LOCKD |
237 | tristate | 240 | tristate |
238 | depends on FILE_LOCKING | 241 | depends on FILE_LOCKING |
242 | select GRACE_PERIOD | ||
239 | 243 | ||
240 | config LOCKD_V4 | 244 | config LOCKD_V4 |
241 | bool | 245 | bool |
@@ -249,7 +253,7 @@ config NFS_ACL_SUPPORT | |||
249 | 253 | ||
250 | config NFS_COMMON | 254 | config NFS_COMMON |
251 | bool | 255 | bool |
252 | depends on NFSD || NFS_FS | 256 | depends on NFSD || NFS_FS || LOCKD |
253 | default y | 257 | default y |
254 | 258 | ||
255 | source "net/sunrpc/Kconfig" | 259 | source "net/sunrpc/Kconfig" |