From: Chuck Lever <chuck.lever@oracle.com> To: Wei Yongjun <weiyongjun1@huawei.com> Cc: Trond Myklebust <trond.myklebust@hammerspace.com>, Anna Schumaker <anna.schumaker@netapp.com>, Bruce Fields <bfields@fieldses.org>, Jeff Layton <jlayton@kernel.org>, Linux NFS Mailing List <linux-nfs@vger.kernel.org>, netdev@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: Re: [PATCH net-next] xprtrdma: Fix error return code in rpcrdma_buffer_create() Date: Wed, 16 Jan 2019 10:18:37 -0500 [thread overview] Message-ID: <84778E0E-6A51-4348-94C6-57110599DAD3@oracle.com> (raw) In-Reply-To: <1547635124-62243-1-git-send-email-weiyongjun1@huawei.com> On Jan 16, 2019, at 5:38 AM, Wei Yongjun <weiyongjun1@huawei.com> wrote: > Fix to return a negative error code -ENOMEM from the error handling > case instead of 0, as done elsewhere in this function. > > Fixes: 6d2d0ee27c7a ("xprtrdma: Replace rpcrdma_receive_wq with a per-xprt workqueue") > Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> I thought we'd already fixed this one, but: Reviewed-by: Chuck Lever <chuck.lever@oracle.com> > --- > net/sunrpc/xprtrdma/verbs.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/net/sunrpc/xprtrdma/verbs.c b/net/sunrpc/xprtrdma/verbs.c > index 7749a2b..3dde058 100644 > --- a/net/sunrpc/xprtrdma/verbs.c > +++ b/net/sunrpc/xprtrdma/verbs.c > @@ -1113,8 +1113,10 @@ struct rpcrdma_req * > WQ_MEM_RECLAIM | WQ_HIGHPRI, > 0, > r_xprt->rx_xprt.address_strings[RPC_DISPLAY_ADDR]); > - if (!buf->rb_completion_wq) > + if (!buf->rb_completion_wq) { > + rc = -ENOMEM; > goto out; > + } > > return 0; > out: -- Chuck Lever
WARNING: multiple messages have this Message-ID (diff)
From: Chuck Lever <chuck.lever@oracle.com> To: Wei Yongjun <weiyongjun1@huawei.com> Cc: Trond Myklebust <trond.myklebust@hammerspace.com>, Anna Schumaker <anna.schumaker@netapp.com>, Bruce Fields <bfields@fieldses.org>, Jeff Layton <jlayton@kernel.org>, Linux NFS Mailing List <linux-nfs@vger.kernel.org>, netdev@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: Re: [PATCH net-next] xprtrdma: Fix error return code in rpcrdma_buffer_create() Date: Wed, 16 Jan 2019 15:18:37 +0000 [thread overview] Message-ID: <84778E0E-6A51-4348-94C6-57110599DAD3@oracle.com> (raw) In-Reply-To: <1547635124-62243-1-git-send-email-weiyongjun1@huawei.com> On Jan 16, 2019, at 5:38 AM, Wei Yongjun <weiyongjun1@huawei.com> wrote: > Fix to return a negative error code -ENOMEM from the error handling > case instead of 0, as done elsewhere in this function. > > Fixes: 6d2d0ee27c7a ("xprtrdma: Replace rpcrdma_receive_wq with a per-xprt workqueue") > Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> I thought we'd already fixed this one, but: Reviewed-by: Chuck Lever <chuck.lever@oracle.com> > --- > net/sunrpc/xprtrdma/verbs.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/net/sunrpc/xprtrdma/verbs.c b/net/sunrpc/xprtrdma/verbs.c > index 7749a2b..3dde058 100644 > --- a/net/sunrpc/xprtrdma/verbs.c > +++ b/net/sunrpc/xprtrdma/verbs.c > @@ -1113,8 +1113,10 @@ struct rpcrdma_req * > WQ_MEM_RECLAIM | WQ_HIGHPRI, > 0, > r_xprt->rx_xprt.address_strings[RPC_DISPLAY_ADDR]); > - if (!buf->rb_completion_wq) > + if (!buf->rb_completion_wq) { > + rc = -ENOMEM; > goto out; > + } > > return 0; > out: -- Chuck Lever
next prev parent reply other threads:[~2019-01-16 15:19 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2019-01-16 10:38 [PATCH net-next] xprtrdma: Fix error return code in rpcrdma_buffer_create() Wei Yongjun 2019-01-16 10:38 ` Wei Yongjun 2019-01-16 15:18 ` Chuck Lever [this message] 2019-01-16 15:18 ` Chuck Lever
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=84778E0E-6A51-4348-94C6-57110599DAD3@oracle.com \ --to=chuck.lever@oracle.com \ --cc=anna.schumaker@netapp.com \ --cc=bfields@fieldses.org \ --cc=jlayton@kernel.org \ --cc=kernel-janitors@vger.kernel.org \ --cc=linux-nfs@vger.kernel.org \ --cc=netdev@vger.kernel.org \ --cc=trond.myklebust@hammerspace.com \ --cc=weiyongjun1@huawei.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: linkBe 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.