From: Trond Myklebust <trond.myklebust@primarydata.com>
To: William Andros Adamson <andros@netapp.com>
Cc: Linux NFS Mailing List <linux-nfs@vger.kernel.org>
Subject: Re: [PATCH RFC Version 1 6/6] NFS schedule bind_conn_to_session for new NFSv4.1 transport
Date: Fri, 5 Feb 2016 20:04:48 -0500 [thread overview]
Message-ID: <CAHQdGtS1+yQp1bPEHYt9Po7GNe7Hv2O4dtRSae-fTsKySv1v0A@mail.gmail.com> (raw)
In-Reply-To: <1454706518-4641-7-git-send-email-andros@netapp.com>
On Fri, Feb 5, 2016 at 4:08 PM, <andros@netapp.com> wrote:
> From: Andy Adamson <andros@netapp.com>
>
> Complete session trunking with the BIND_CONN_TO_SESSION call.
> NFS cleanup after session trunking transport added
>
> Signed-off-by: Andy Adamson <andros@netapp.com>
> ---
> fs/nfs/nfs4client.c | 13 +++++++++++--
> 1 file changed, 11 insertions(+), 2 deletions(-)
>
> diff --git a/fs/nfs/nfs4client.c b/fs/nfs/nfs4client.c
> index 6736805..b0423f7 100644
> --- a/fs/nfs/nfs4client.c
> +++ b/fs/nfs/nfs4client.c
> @@ -423,8 +423,17 @@ struct nfs_client *nfs4_init_client(struct nfs_client *clp,
> .servername = clp->cl_hostname,
> };
> /* Add this address as an alias */
> - rpc_clnt_add_xprt(old->cl_rpcclient, &xprt_args,
> - rpc_clnt_test_and_add_xprt, NULL);
> + error = rpc_clnt_add_xprt(old->cl_rpcclient, &xprt_args,
> + rpc_clnt_test_and_add_xprt, NULL);
> + if (!error) {
> + nfs4_schedule_session_recovery(old->cl_session,
> + -NFS4ERR_CONN_NOT_BOUND_TO_SESSION);
> +
> + /** Cancel the 2nd mount */
> + pr_info("NFS: Session trunk. CANCEL MOUNT\n");
> + error = -EINVAL;
You can't do this. What if we're not mounting the same path?
> + goto error;
> + }
> }
> clp->cl_preserve_clid = true;
> }
> --
> 1.8.3.1
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2016-02-06 1:04 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-05 21:08 [PATCH RFC Version 1 0/6] Request for Comment: NFS4.1 Session Trunking andros
2016-02-05 21:08 ` [PATCH RFC Version 1 1/6] SUNRPC fix rpc_clnt_add_xprt setup return andros
2016-02-05 23:21 ` Trond Myklebust
2016-02-05 21:08 ` [PATCH RFC Version 1 2/6] SUNRPC fix rpc_clnt_xprt_iter_init infinite loop andros
2016-02-06 1:18 ` Trond Myklebust
2016-02-05 21:08 ` [PATCH RFC Version 1 3/6] SUNRPC: allow rpc_xprt_switch_add_xprt to add xprts on the same net andros
2016-02-05 23:33 ` Trond Myklebust
2016-02-05 21:08 ` [PATCH RFC Version 1 4/6] NFS session trunking support: add trunk xprt to nfs4.1 mount andros
2016-02-06 1:03 ` Trond Myklebust
2016-02-05 21:08 ` [PATCH RFC Version 1 5/6] NFS add callback_ops to nfs4_proc_bind_conn_to_session_callback andros
2016-02-06 1:05 ` Trond Myklebust
2016-02-05 21:08 ` [PATCH RFC Version 1 6/6] NFS schedule bind_conn_to_session for new NFSv4.1 transport andros
2016-02-06 1:04 ` Trond Myklebust [this message]
2016-02-08 17:48 ` Adamson, Andy
2016-02-08 18:07 ` Trond Myklebust
2016-02-05 21:41 ` [PATCH RFC Version 1 0/6] Request for Comment: NFS4.1 Session Trunking Matt Benjamin
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=CAHQdGtS1+yQp1bPEHYt9Po7GNe7Hv2O4dtRSae-fTsKySv1v0A@mail.gmail.com \
--to=trond.myklebust@primarydata.com \
--cc=andros@netapp.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;
as well as URLs for NNTP newsgroup(s).