Skip to content

Commit 62421cd

Browse files
trondmyamschuma-ntap
authored andcommitted
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>
1 parent 8aafd2f commit 62421cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/nfs/nfs4proc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8268,7 +8268,7 @@ static void nfs4_init_channel_attrs(struct nfs41_create_session_args *args,
82688268
args->bc_attrs.max_resp_sz = max_bc_payload;
82698269
args->bc_attrs.max_resp_sz_cached = 0;
82708270
args->bc_attrs.max_ops = NFS4_MAX_BACK_CHANNEL_OPS;
8271-
args->bc_attrs.max_reqs = min_t(unsigned short, max_session_cb_slots, 1);
8271+
args->bc_attrs.max_reqs = max_t(unsigned short, max_session_cb_slots, 1);
82728272

82738273
dprintk("%s: Back Channel : max_rqst_sz=%u max_resp_sz=%u "
82748274
"max_resp_sz_cached=%u max_ops=%u max_reqs=%u\n",

0 commit comments

Comments
 (0)