linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: bfields@fieldses.org (J. Bruce Fields)
To: Trond Myklebust <trond.myklebust@primarydata.com>,
	Anna Schumaker <schumakeranna@gmail.com>
Cc: linux-nfs@vger.kernel.org
Subject: Re: [PATCH 0/3] fix backchannel crash due to multipath
Date: Mon, 13 Jun 2016 14:21:04 -0400	[thread overview]
Message-ID: <20160613182104.GA19825@fieldses.org> (raw)

On March 24 J. Bruce Fields said:
> pynfs can crash the nfs server since the new multipath code.  The
> problem is that pynfs uses the same tcp connection for multiple v4
> clients (something the spec explicitly allows).  The callback client in
> such cases has to share the same rpc_xprt.  The new rpc code, when it
> creates two callback clients sharing the same rpc_xprt, ends up trying
> to keep that rpc_xprt on the lists of two different rpc_xprt_switch's.
> The first symptom I see is a list corruption warning.
>
> So, I'm enforcing the requirement that there be only one backchannel
> rpc_xprt_switch per tcp connection by doing as we do in the rpc_xprt
> case: keeping a pointer to it in the svc_xprt, and using that when it's
> available instead of allocating a new one.

> That's a pretty straightforward fix (and I've verified it works), but
> doesn't look very elegant.  If there's a better solution, I'm all ears.

I haven't come up with anything neater, and kind of need the crash
fixed.  ACK or NACK?  I can take it through my tree if it's an ACK.

--b.

             reply	other threads:[~2016-06-13 18:21 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-13 18:21 J. Bruce Fields [this message]
2016-06-13 19:24 ` [PATCH 0/3] fix backchannel crash due to multipath Trond Myklebust
2016-06-13 20:54   ` J. Bruce Fields
  -- strict thread matches above, loose matches on Subject: below --
2016-05-24 21:16 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=20160613182104.GA19825@fieldses.org \
    --to=bfields@fieldses.org \
    --cc=linux-nfs@vger.kernel.org \
    --cc=schumakeranna@gmail.com \
    --cc=trond.myklebust@primarydata.com \
    /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).