All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Chuck Lever" <cel@kernel.org>
To: tmenninger@purestorage.com
Cc: "Trond Myklebust" <trondmy@kernel.org>,
	"Anna Schumaker" <anna@kernel.org>, "Tom Talpey" <tom@talpey.com>,
	linux-nfs@vger.kernel.org, stable@vger.kernel.org,
	slingappa@everpuredata.com, ebadger@everpuredata.com,
	jcurley@everpuredata.com,
	"Tim Menninger" <tmenninger@everpuredata.com>
Subject: Re: [PATCH v3] xprtrdma: serialize unmap_sync with xprt_disconnect
Date: Sat, 22 Aug 2026 12:51:00 -0400	[thread overview]
Message-ID: <9b573eb8-ea13-47bb-a06a-db70d57fc20e@app.fastmail.com> (raw)
In-Reply-To: <20260821234827.1560856-1-tmenninger@purestorage.com>



On Fri, Aug 21, 2026, at 7:48 PM, tmenninger@purestorage.com wrote:

> diff --git a/net/sunrpc/xprtrdma/verbs.c b/net/sunrpc/xprtrdma/verbs.c
> index 04b286223b24..b9ebfcbcabc5 100644
> --- a/net/sunrpc/xprtrdma/verbs.c
> +++ b/net/sunrpc/xprtrdma/verbs.c

> @@ -388,6 +387,14 @@ static noinline int rpcrdma_ep_put(struct rpcrdma_ep *ep)
>  	return kref_put(&ep->re_kref, rpcrdma_ep_destroy);
>  }
> 
> +void rpcrdma_ep_release(struct rpcrdma_ep *ep)
> +{
> +	struct rdma_cm_id *id = ep->re_id;
> +
> +	if (rpcrdma_ep_put(ep))
> +		rdma_destroy_id(id);
> +}
> +

Nit: The new externally-visible functions need kdoc comments.
rpcrdma_ep_put() is now static, so the kdoc comment there can
be converted to non-kdoc-style.


> @@ -601,6 +614,9 @@ void rpcrdma_xprt_disconnect(struct rpcrdma_xprt *r_xprt)
>  		rdma_destroy_id(id);
> 
>  	r_xprt->rx_ep = NULL;
> +
> +out_unlock:
> +	up_write(&r_xprt->rx_unmap_rwsem);
>  }

Nit: rpcrdma_xprt_disconnect() retains

    if (rpcrdma_ep_put(ep)) 
        rdma_destroy_id(id);

but should call the new rpcrdma_ep_release() helper.

The new block comments are wordy, and could be tightened. But no
show-stoppers here:

Reviewed-by: Chuck Lever <cel@kernel.org>

-- 
Chuck Lever

  reply	other threads:[~2026-08-22 16:51 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-18 12:28 [PATCH] xprtrdma: serialize unmap_sync with xprt_disconnect tmenninger
2026-08-18 16:18 ` Chuck Lever
2026-08-20 21:17 ` [PATCH v2] " Tim Menninger
2026-08-21 15:17   ` Chuck Lever
2026-08-21 23:48     ` [PATCH v3] " tmenninger
2026-08-22 16:51       ` Chuck Lever [this message]
2026-08-23 13:46         ` [PATCH v4] " Tim Menninger

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=9b573eb8-ea13-47bb-a06a-db70d57fc20e@app.fastmail.com \
    --to=cel@kernel.org \
    --cc=anna@kernel.org \
    --cc=ebadger@everpuredata.com \
    --cc=jcurley@everpuredata.com \
    --cc=linux-nfs@vger.kernel.org \
    --cc=slingappa@everpuredata.com \
    --cc=stable@vger.kernel.org \
    --cc=tmenninger@everpuredata.com \
    --cc=tmenninger@purestorage.com \
    --cc=tom@talpey.com \
    --cc=trondmy@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.