From: Doug Ledford <dledford@redhat.com>
To: Bart Van Assche
<Bart.VanAssche-XdAiOPVOjttBDgjK7y7TUQ@public.gmane.org>,
"christophe.jaillet-39ZsbGIQGT5GWvitb5QawA@public.gmane.org"
<christophe.jaillet-39ZsbGIQGT5GWvitb5QawA@public.gmane.org>,
"hal.rosenstock-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org"
<hal.rosenstock-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
"sean.hefty-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org"
<sean.hefty-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
Cc: "linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
"linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
"kernel-janitors-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<kernel-janitors-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: [PATCH] IB/cma: Fix reversed test
Date: Sat, 28 Jan 2017 00:05:52 +0000 [thread overview]
Message-ID: <1485561952.2432.31.camel@redhat.com> (raw)
In-Reply-To: <1485552696.13218.0.camel-XdAiOPVOjttBDgjK7y7TUQ@public.gmane.org>
[-- Attachment #1: Type: text/plain, Size: 1564 bytes --]
On Fri, 2017-01-27 at 21:31 +0000, Bart Van Assche wrote:
> On Fri, 2017-01-27 at 14:15 +0100, Christophe JAILLET wrote:
> >
> > This test looks reverted.
> > We should log an error message only if 'ib_attach_mcast()' fails.
> >
> > Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
> > ---
> > drivers/infiniband/core/cma.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/drivers/infiniband/core/cma.c
> > b/drivers/infiniband/core/cma.c
> > index cfefb941d729..175f62e5841e 100644
> > --- a/drivers/infiniband/core/cma.c
> > +++ b/drivers/infiniband/core/cma.c
> > @@ -3838,7 +3838,7 @@ static int cma_ib_mc_handler(int status,
> > struct ib_sa_multicast *multicast)
> > if (!status && id_priv->id.qp) {
> > status = ib_attach_mcast(id_priv->id.qp,
> > &multicast->rec.mgid,
> > be16_to_cpu(multicast-
> > >rec.mlid));
> > - if (!status)
> > + if (status)
> > pr_debug_ratelimited("RDMA CM:
> > MULTICAST_ERROR: failed to attach QP. status %d\n",
> > status);
> > }
>
> Hello Christophe,
>
> Do you think this patch needs "Fixes:" and "Cc: stable" tags?
It does not. I already tried to apply it to my 4.10-rc branch and it
doesn't apply there. In the for-4.11 queue is a patch to improve debug
printouts in the core, and it is that patch that introduced this error.
--
Doug Ledford <dledford@redhat.com>
GPG KeyID: B826A3330E572FDD
Key fingerprint = AE6B 1BDA 122B 23B4 265B 1274 B826 A333 0E57 2FDD
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: Doug Ledford <dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: Bart Van Assche
<Bart.VanAssche-XdAiOPVOjttBDgjK7y7TUQ@public.gmane.org>,
"christophe.jaillet-39ZsbGIQGT5GWvitb5QawA@public.gmane.org"
<christophe.jaillet-39ZsbGIQGT5GWvitb5QawA@public.gmane.org>,
"hal.rosenstock-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org"
<hal.rosenstock-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
"sean.hefty-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org"
<sean.hefty-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
Cc: "linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
"linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
"kernel-janitors-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<kernel-janitors-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: [PATCH] IB/cma: Fix reversed test
Date: Fri, 27 Jan 2017 19:05:52 -0500 [thread overview]
Message-ID: <1485561952.2432.31.camel@redhat.com> (raw)
In-Reply-To: <1485552696.13218.0.camel-XdAiOPVOjttBDgjK7y7TUQ@public.gmane.org>
[-- Attachment #1: Type: text/plain, Size: 1622 bytes --]
On Fri, 2017-01-27 at 21:31 +0000, Bart Van Assche wrote:
> On Fri, 2017-01-27 at 14:15 +0100, Christophe JAILLET wrote:
> >
> > This test looks reverted.
> > We should log an error message only if 'ib_attach_mcast()' fails.
> >
> > Signed-off-by: Christophe JAILLET <christophe.jaillet-39ZsbGIQGT5GWvitb5QawA@public.gmane.org>
> > ---
> > drivers/infiniband/core/cma.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/drivers/infiniband/core/cma.c
> > b/drivers/infiniband/core/cma.c
> > index cfefb941d729..175f62e5841e 100644
> > --- a/drivers/infiniband/core/cma.c
> > +++ b/drivers/infiniband/core/cma.c
> > @@ -3838,7 +3838,7 @@ static int cma_ib_mc_handler(int status,
> > struct ib_sa_multicast *multicast)
> > if (!status && id_priv->id.qp) {
> > status = ib_attach_mcast(id_priv->id.qp,
> > &multicast->rec.mgid,
> > be16_to_cpu(multicast-
> > >rec.mlid));
> > - if (!status)
> > + if (status)
> > pr_debug_ratelimited("RDMA CM:
> > MULTICAST_ERROR: failed to attach QP. status %d\n",
> > status);
> > }
>
> Hello Christophe,
>
> Do you think this patch needs "Fixes:" and "Cc: stable" tags?
It does not. I already tried to apply it to my 4.10-rc branch and it
doesn't apply there. In the for-4.11 queue is a patch to improve debug
printouts in the core, and it is that patch that introduced this error.
--
Doug Ledford <dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
GPG KeyID: B826A3330E572FDD
Key fingerprint = AE6B 1BDA 122B 23B4 265B 1274 B826 A333 0E57 2FDD
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: Doug Ledford <dledford@redhat.com>
To: Bart Van Assche <Bart.VanAssche@sandisk.com>,
"christophe.jaillet@wanadoo.fr" <christophe.jaillet@wanadoo.fr>,
"hal.rosenstock@gmail.com" <hal.rosenstock@gmail.com>,
"sean.hefty@intel.com" <sean.hefty@intel.com>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-rdma@vger.kernel.org" <linux-rdma@vger.kernel.org>,
"kernel-janitors@vger.kernel.org"
<kernel-janitors@vger.kernel.org>
Subject: Re: [PATCH] IB/cma: Fix reversed test
Date: Fri, 27 Jan 2017 19:05:52 -0500 [thread overview]
Message-ID: <1485561952.2432.31.camel@redhat.com> (raw)
In-Reply-To: <1485552696.13218.0.camel@sandisk.com>
[-- Attachment #1: Type: text/plain, Size: 1564 bytes --]
On Fri, 2017-01-27 at 21:31 +0000, Bart Van Assche wrote:
> On Fri, 2017-01-27 at 14:15 +0100, Christophe JAILLET wrote:
> >
> > This test looks reverted.
> > We should log an error message only if 'ib_attach_mcast()' fails.
> >
> > Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
> > ---
> > drivers/infiniband/core/cma.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/drivers/infiniband/core/cma.c
> > b/drivers/infiniband/core/cma.c
> > index cfefb941d729..175f62e5841e 100644
> > --- a/drivers/infiniband/core/cma.c
> > +++ b/drivers/infiniband/core/cma.c
> > @@ -3838,7 +3838,7 @@ static int cma_ib_mc_handler(int status,
> > struct ib_sa_multicast *multicast)
> > if (!status && id_priv->id.qp) {
> > status = ib_attach_mcast(id_priv->id.qp,
> > &multicast->rec.mgid,
> > be16_to_cpu(multicast-
> > >rec.mlid));
> > - if (!status)
> > + if (status)
> > pr_debug_ratelimited("RDMA CM:
> > MULTICAST_ERROR: failed to attach QP. status %d\n",
> > status);
> > }
>
> Hello Christophe,
>
> Do you think this patch needs "Fixes:" and "Cc: stable" tags?
It does not. I already tried to apply it to my 4.10-rc branch and it
doesn't apply there. In the for-4.11 queue is a patch to improve debug
printouts in the core, and it is that patch that introduced this error.
--
Doug Ledford <dledford@redhat.com>
GPG KeyID: B826A3330E572FDD
Key fingerprint = AE6B 1BDA 122B 23B4 265B 1274 B826 A333 0E57 2FDD
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
next prev parent reply other threads:[~2017-01-28 0:05 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-27 13:15 [PATCH] IB/cma: Fix reversed test Christophe JAILLET
2017-01-27 13:15 ` Christophe JAILLET
2017-01-27 19:24 ` Doug Ledford
2017-01-27 19:24 ` Doug Ledford
2017-01-27 21:31 ` Bart Van Assche
[not found] ` <1485552696.13218.0.camel-XdAiOPVOjttBDgjK7y7TUQ@public.gmane.org>
2017-01-28 0:05 ` Doug Ledford [this message]
2017-01-28 0:05 ` Doug Ledford
2017-01-28 0:05 ` Doug Ledford
2017-01-28 6:59 ` Dan Carpenter
2017-01-28 6:59 ` Dan Carpenter
2017-01-28 12:47 ` Majd Dibbiny
2017-01-28 13:01 ` Majd Dibbiny
2017-02-03 18:34 ` Doug Ledford
2017-02-03 18:34 ` Doug Ledford
[not found] ` <2fde1e87-a345-4697-e205-051a3973e624-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2017-02-06 9:32 ` Dan Carpenter
2017-02-06 9:32 ` Dan Carpenter
2017-02-06 9:32 ` Dan Carpenter
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=1485561952.2432.31.camel@redhat.com \
--to=dledford@redhat.com \
--cc=Bart.VanAssche-XdAiOPVOjttBDgjK7y7TUQ@public.gmane.org \
--cc=christophe.jaillet-39ZsbGIQGT5GWvitb5QawA@public.gmane.org \
--cc=hal.rosenstock-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=kernel-janitors-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=sean.hefty-ral2JQCrhuEAvxtiuMwx3w@public.gmane.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.