diff options
author | Trond Myklebust <trondmy@gmail.com> | 2018-08-11 11:52:39 -0400 |
---|---|---|
committer | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2018-08-13 17:23:37 -0400 |
commit | 62421cd943014a84b095cefb31d2261c51eb3d4b (patch) | |
tree | 1c911cd022efe44a6744119df23e0a8e288cb172 /fs/nfs/nfs4proc.c | |
parent | 8aafd2fde3784f962c87aa6ff9c88e4def307036 (diff) | |
download | linux-stable-62421cd943014a84b095cefb31d2261c51eb3d4b.tar.gz linux-stable-62421cd943014a84b095cefb31d2261c51eb3d4b.tar.bz2 linux-stable-62421cd943014a84b095cefb31d2261c51eb3d4b.zip |
NFSv4: Fix a typo in nfs4_init_channel_attrs()
The back channel size is allowed to be 1 or greater.
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'fs/nfs/nfs4proc.c')
-rw-r--r-- | fs/nfs/nfs4proc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index df5d3227f13b..7071acb44222 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c @@ -8268,7 +8268,7 @@ static void nfs4_init_channel_attrs(struct nfs41_create_session_args *args, args->bc_attrs.max_resp_sz = max_bc_payload; args->bc_attrs.max_resp_sz_cached = 0; args->bc_attrs.max_ops = NFS4_MAX_BACK_CHANNEL_OPS; - args->bc_attrs.max_reqs = min_t(unsigned short, max_session_cb_slots, 1); + args->bc_attrs.max_reqs = max_t(unsigned short, max_session_cb_slots, 1); dprintk("%s: Back Channel : max_rqst_sz=%u max_resp_sz=%u " "max_resp_sz_cached=%u max_ops=%u max_reqs=%u\n", |