From: Benny Halevy <bhalevy@panasas.com>
To: bfields@citi.umich.edu
Cc: bharrosh@panasas.com, linux-nfs@vger.kernel.org
Subject: Re: [PATCH] SQUASHME: pnfsd: setup backchannel in create_session also in session reestablishment
Date: Fri, 18 Jun 2010 17:55:58 -0400 [thread overview]
Message-ID: <4C1BEB6E.3050908@panasas.com> (raw)
In-Reply-To: <1276815696-19281-1-git-send-email-bhalevy@panasas.com>
Bruce, this patch should go upstream.
Thanks,
Benny
On Jun. 17, 2010, 19:01 -0400, Benny Halevy <bhalevy@panasas.com> wrote:
> The client may send an EXCHANGE_ID and a following CREATE_SESSION for an
> existing clientid. In this case we'll find the nfs4_client in the confirmed
> list.
>
> Signed-off-by: Benny Halevy <bhalevy@panasas.com>
> ---
> fs/nfsd/nfs4state.c | 24 +++++++++++-------------
> 1 files changed, 11 insertions(+), 13 deletions(-)
>
> diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c
> index 3e012d4..0df5483 100644
> --- a/fs/nfsd/nfs4state.c
> +++ b/fs/nfsd/nfs4state.c
> @@ -1405,25 +1405,23 @@ nfsd4_create_session(struct svc_rqst *rqstp,
> if (is_ds_only_session(unconf->cl_exchange_flags))
> cr_ses->flags &= ~SESSION4_BACK_CHAN;
>
> - if (cr_ses->flags & SESSION4_BACK_CHAN) {
> - unconf->cl_cb_conn.cb_xprt = rqstp->rq_xprt;
> - svc_xprt_get(rqstp->rq_xprt);
> - rpc_copy_addr(
> - (struct sockaddr *)&unconf->cl_cb_conn.cb_addr,
> - sa);
> - unconf->cl_cb_conn.cb_addrlen = svc_addr_len(sa);
> - unconf->cl_cb_conn.cb_minorversion =
> - cstate->minorversion;
> - unconf->cl_cb_conn.cb_prog = cr_ses->callback_prog;
> - unconf->cl_cb_seq_nr = 1;
> - nfsd4_probe_callback(unconf, &unconf->cl_cb_conn);
> - }
> conf = unconf;
> } else {
> status = nfserr_stale_clientid;
> goto out;
> }
>
> + if (cr_ses->flags & SESSION4_BACK_CHAN) {
> + conf->cl_cb_conn.cb_xprt = rqstp->rq_xprt;
> + svc_xprt_get(rqstp->rq_xprt);
> + rpc_copy_addr((struct sockaddr *)&conf->cl_cb_conn.cb_addr, sa);
> + conf->cl_cb_conn.cb_addrlen = svc_addr_len(sa);
> + conf->cl_cb_conn.cb_minorversion = cstate->minorversion;
> + conf->cl_cb_conn.cb_prog = cr_ses->callback_prog;
> + conf->cl_cb_seq_nr = 1;
> + nfsd4_probe_callback(conf, &conf->cl_cb_conn);
> + }
> +
> /*
> * We do not support RDMA or persistent sessions
> */
next prev parent reply other threads:[~2010-06-18 21:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-17 23:01 [PATCH] SQUASHME: pnfsd: setup backchannel in create_session also in session reestablishment Benny Halevy
2010-06-18 21:55 ` Benny Halevy [this message]
2010-06-26 15:24 ` J. Bruce Fields
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4C1BEB6E.3050908@panasas.com \
--to=bhalevy@panasas.com \
--cc=bfields@citi.umich.edu \
--cc=bharrosh@panasas.com \
--cc=linux-nfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox