diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-02-06 19:50:40 -0500 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-02-15 00:19:44 -0500 |
commit | ef159e9177cc5a09e6174796dde0b2d243ddf28b (patch) | |
tree | 848dc5cc90b9090a1bfb00021cf3e3511569fdef /include | |
parent | 45d43c291e9a922d7b432b0dbcb1d8fb70d8410f (diff) |
NFSv4.1: Add a module parameter to set the number of session slots
Add the module parameter 'max_session_slots' to set the initial number
of slots that the NFSv4.1 client will attempt to negotiate with the
server.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/nfs_fs_sb.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/nfs_fs_sb.h b/include/linux/nfs_fs_sb.h index 2ae57f2f645b..3bf47666646e 100644 --- a/include/linux/nfs_fs_sb.h +++ b/include/linux/nfs_fs_sb.h | |||
@@ -190,13 +190,14 @@ struct nfs_server { | |||
190 | 190 | ||
191 | 191 | ||
192 | /* maximum number of slots to use */ | 192 | /* maximum number of slots to use */ |
193 | #define NFS4_MAX_SLOT_TABLE (128U) | 193 | #define NFS4_DEF_SLOT_TABLE_SIZE (16U) |
194 | #define NFS4_MAX_SLOT_TABLE (256U) | ||
194 | #define NFS4_NO_SLOT ((u32)-1) | 195 | #define NFS4_NO_SLOT ((u32)-1) |
195 | 196 | ||
196 | #if defined(CONFIG_NFS_V4) | 197 | #if defined(CONFIG_NFS_V4) |
197 | 198 | ||
198 | /* Sessions */ | 199 | /* Sessions */ |
199 | #define SLOT_TABLE_SZ (NFS4_MAX_SLOT_TABLE/(8*sizeof(long))) | 200 | #define SLOT_TABLE_SZ DIV_ROUND_UP(NFS4_MAX_SLOT_TABLE, 8*sizeof(long)) |
200 | struct nfs4_slot_table { | 201 | struct nfs4_slot_table { |
201 | struct nfs4_slot *slots; /* seqid per slot */ | 202 | struct nfs4_slot *slots; /* seqid per slot */ |
202 | unsigned long used_slots[SLOT_TABLE_SZ]; /* used/unused bitmap */ | 203 | unsigned long used_slots[SLOT_TABLE_SZ]; /* used/unused bitmap */ |