diff options
| author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-02-06 19:38:51 -0500 |
|---|---|---|
| committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-02-15 00:19:43 -0500 |
| commit | 45d43c291e9a922d7b432b0dbcb1d8fb70d8410f (patch) | |
| tree | b7aeca1a66177b2b03c2bb96996d3d40cbbf7a9a /include | |
| parent | 17347d03c008e2f504c33bb4905cdad0abc01319 (diff) | |
NFSv4.1: Convert slotid from u8 to u32
It is perfectly legal to negotiate up to 2^32-1 slots in the protocol,
and with 10GigE, we are already seeing that 255 slots is far too limiting.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/nfs_fs_sb.h | 7 | ||||
| -rw-r--r-- | include/linux/nfs_xdr.h | 2 |
2 files changed, 5 insertions, 4 deletions
diff --git a/include/linux/nfs_fs_sb.h b/include/linux/nfs_fs_sb.h index 9e101c1b81cf..2ae57f2f645b 100644 --- a/include/linux/nfs_fs_sb.h +++ b/include/linux/nfs_fs_sb.h | |||
| @@ -191,6 +191,7 @@ struct nfs_server { | |||
| 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_MAX_SLOT_TABLE (128U) |
| 194 | #define NFS4_NO_SLOT ((u32)-1) | ||
| 194 | 195 | ||
| 195 | #if defined(CONFIG_NFS_V4) | 196 | #if defined(CONFIG_NFS_V4) |
| 196 | 197 | ||
| @@ -201,10 +202,10 @@ struct nfs4_slot_table { | |||
| 201 | unsigned long used_slots[SLOT_TABLE_SZ]; /* used/unused bitmap */ | 202 | unsigned long used_slots[SLOT_TABLE_SZ]; /* used/unused bitmap */ |
| 202 | spinlock_t slot_tbl_lock; | 203 | spinlock_t slot_tbl_lock; |
| 203 | struct rpc_wait_queue slot_tbl_waitq; /* allocators may wait here */ | 204 | struct rpc_wait_queue slot_tbl_waitq; /* allocators may wait here */ |
| 204 | int max_slots; /* # slots in table */ | 205 | u32 max_slots; /* # slots in table */ |
| 205 | int highest_used_slotid; /* sent to server on each SEQ. | 206 | u32 highest_used_slotid; /* sent to server on each SEQ. |
| 206 | * op for dynamic resizing */ | 207 | * op for dynamic resizing */ |
| 207 | int target_max_slots; /* Set by CB_RECALL_SLOT as | 208 | u32 target_max_slots; /* Set by CB_RECALL_SLOT as |
| 208 | * the new max_slots */ | 209 | * the new max_slots */ |
| 209 | struct completion complete; | 210 | struct completion complete; |
| 210 | }; | 211 | }; |
diff --git a/include/linux/nfs_xdr.h b/include/linux/nfs_xdr.h index 144419a9cbd3..adbc84ac345f 100644 --- a/include/linux/nfs_xdr.h +++ b/include/linux/nfs_xdr.h | |||
| @@ -181,7 +181,7 @@ struct nfs4_slot { | |||
| 181 | 181 | ||
| 182 | struct nfs4_sequence_args { | 182 | struct nfs4_sequence_args { |
| 183 | struct nfs4_session *sa_session; | 183 | struct nfs4_session *sa_session; |
| 184 | u8 sa_slotid; | 184 | u32 sa_slotid; |
| 185 | u8 sa_cache_this; | 185 | u8 sa_cache_this; |
| 186 | }; | 186 | }; |
| 187 | 187 | ||
