diff options
author | Trond Myklebust <trond.myklebust@primarydata.com> | 2015-02-18 14:34:58 -0500 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2015-02-18 15:30:47 -0500 |
commit | b1c0df5fadc917ba3724ae9fdfcc6f97db34736a (patch) | |
tree | 0f369742e4d930a2ae0de2bcd03373a47d7f0586 /fs/nfs/nfs4session.c | |
parent | 79969dd12e8756f64a999992c0536ccd91bf6e54 (diff) |
NFSv4.1: Don't set up a backchannel if the server didn't agree to do so
If the server doesn't agree to out backchannel setup request, then
don't set one up.
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'fs/nfs/nfs4session.c')
-rw-r--r-- | fs/nfs/nfs4session.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/nfs4session.c b/fs/nfs/nfs4session.c index e799dc3c3b1d..e23366effcfb 100644 --- a/fs/nfs/nfs4session.c +++ b/fs/nfs/nfs4session.c | |||
@@ -450,7 +450,7 @@ int nfs4_setup_session_slot_tables(struct nfs4_session *ses) | |||
450 | tbl = &ses->fc_slot_table; | 450 | tbl = &ses->fc_slot_table; |
451 | tbl->session = ses; | 451 | tbl->session = ses; |
452 | status = nfs4_realloc_slot_table(tbl, ses->fc_attrs.max_reqs, 1); | 452 | status = nfs4_realloc_slot_table(tbl, ses->fc_attrs.max_reqs, 1); |
453 | if (status) /* -ENOMEM */ | 453 | if (status || !(ses->flags & SESSION4_BACK_CHAN)) /* -ENOMEM */ |
454 | return status; | 454 | return status; |
455 | /* Back channel */ | 455 | /* Back channel */ |
456 | tbl = &ses->bc_slot_table; | 456 | tbl = &ses->bc_slot_table; |