From: Paolo Abeni <pabeni@redhat.com>
To: "Håkon Bugge" <haakon.bugge@oracle.com>,
"Allison Henderson" <allison.henderson@oracle.com>,
"David S. Miller" <davem@davemloft.net>,
"Eric Dumazet" <edumazet@google.com>,
"Jakub Kicinski" <kuba@kernel.org>,
"Simon Horman" <horms@kernel.org>
Cc: stable@vger.kernel.org, netdev@vger.kernel.org,
linux-rdma@vger.kernel.org, rds-devel@oss.oracle.com,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH net 1/2] rds: ib: Increment i_fastreg_wrs before bailing out
Date: Tue, 9 Sep 2025 12:54:11 +0200 [thread overview]
Message-ID: <d918e832-c2ef-4fc8-864f-407bbcf06073@redhat.com> (raw)
In-Reply-To: <20250903163140.3864215-1-haakon.bugge@oracle.com>
On 9/3/25 6:31 PM, Håkon Bugge wrote:
> We need to increment i_fastreg_wrs before we bail out from
> rds_ib_post_reg_frmr().
Elaborating a bit more on the `why` could help the review.
>
> Fixes: 1659185fb4d0 ("RDS: IB: Support Fastreg MR (FRMR) memory registration mode")
> Fixes: 3a2886cca703 ("net/rds: Keep track of and wait for FRWR segments in use upon shutdown")
> Signed-off-by: Håkon Bugge <haakon.bugge@oracle.com>
[...]
@@ -178,9 +181,11 @@ static int rds_ib_post_reg_frmr(struct rds_ib_mr *ibmr)
> * being accessed while registration is still pending.
> */
> wait_event(frmr->fr_reg_done, !frmr->fr_reg);
> -
> out:
> + return ret;
>
> +out_inc:
> + atomic_inc(&ibmr->ic->i_fastreg_wrs);
The existing error path on ib_post_send() is left untouched. I think it
would be cleaner and less error prone to let it use the above label, too.
/P
next prev parent reply other threads:[~2025-09-09 10:54 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-03 16:31 [PATCH net 1/2] rds: ib: Increment i_fastreg_wrs before bailing out Håkon Bugge
2025-09-03 16:31 ` [PATCH net 2/2] rds: ib: Remove unused extern definition Håkon Bugge
2025-09-03 16:38 ` Greg KH
2025-09-03 16:51 ` Haakon Bugge
2025-09-03 16:56 ` Greg KH
2025-09-03 17:22 ` Haakon Bugge
2025-09-09 10:54 ` Paolo Abeni [this message]
2025-09-09 14:41 ` [PATCH net 1/2] rds: ib: Increment i_fastreg_wrs before bailing out Haakon Bugge
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=d918e832-c2ef-4fc8-864f-407bbcf06073@redhat.com \
--to=pabeni@redhat.com \
--cc=allison.henderson@oracle.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=haakon.bugge@oracle.com \
--cc=horms@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rdma@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=rds-devel@oss.oracle.com \
--cc=stable@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