* [PATCH] infiniband: nes: add unlikely() to assert()
@ 2018-08-31 19:24 Igor Stoppa
2018-09-05 6:01 ` Leon Romanovsky
0 siblings, 1 reply; 6+ messages in thread
From: Igor Stoppa @ 2018-08-31 19:24 UTC (permalink / raw)
To: Faisal Latif
Cc: igor.stoppa, Igor Stoppa, Chien Tung, Roland Dreier,
Jason Gunthorpe, linux-rdma, linux-kernel
Typically the assert is expected to not fail.
Signed-off-by: Igor Stoppa <igor.stoppa@huawei.com>
Acked-by: Doug Ledford <dledford@redhat.com>
Cc: Faisal Latif <faisal.latif@intel.com>
Cc: Chien Tung <chien.tin.tung@intel.com>
Cc: Roland Dreier <rolandd@cisco.com>
Cc: Faisal Latif <faisal.latif@intel.com>
Cc: Jason Gunthorpe <jgg@ziepe.ca>
Cc: linux-rdma@vger.kernel.org
CC: linux-kernel@vger.kernel.org
---
drivers/infiniband/hw/nes/nes.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/infiniband/hw/nes/nes.h b/drivers/infiniband/hw/nes/nes.h
index bedaa02749fb..d2d0098f38e0 100644
--- a/drivers/infiniband/hw/nes/nes.h
+++ b/drivers/infiniband/hw/nes/nes.h
@@ -151,7 +151,7 @@ do { \
#define assert(expr) \
do { \
- if (!(expr)) { \
+ if (unlikely(!(expr))) { \
printk(KERN_ERR PFX "Assertion failed! %s, %s, %s, line %d\n", \
#expr, __FILE__, __func__, __LINE__); \
} \
--
2.17.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH] infiniband: nes: add unlikely() to assert()
2018-08-31 19:24 [PATCH] infiniband: nes: add unlikely() to assert() Igor Stoppa
@ 2018-09-05 6:01 ` Leon Romanovsky
2018-09-05 18:54 ` Igor Stoppa
2018-09-07 15:13 ` Doug Ledford
0 siblings, 2 replies; 6+ messages in thread
From: Leon Romanovsky @ 2018-09-05 6:01 UTC (permalink / raw)
To: Igor Stoppa
Cc: Faisal Latif, Igor Stoppa, Chien Tung, Roland Dreier,
Jason Gunthorpe, linux-rdma, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 373 bytes --]
On Fri, Aug 31, 2018 at 10:24:18PM +0300, Igor Stoppa wrote:
> Typically the assert is expected to not fail.
This whole assert can be removed.
>
> Signed-off-by: Igor Stoppa <igor.stoppa@huawei.com>
> Acked-by: Doug Ledford <dledford@redhat.com>
Most probably that I missed discussion, but anyway, does this
"Acked-by" come from internal or external discussion?
Thanks
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 801 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] infiniband: nes: add unlikely() to assert()
2018-09-05 6:01 ` Leon Romanovsky
@ 2018-09-05 18:54 ` Igor Stoppa
2018-09-07 15:13 ` Doug Ledford
1 sibling, 0 replies; 6+ messages in thread
From: Igor Stoppa @ 2018-09-05 18:54 UTC (permalink / raw)
To: Leon Romanovsky
Cc: Faisal Latif, Igor Stoppa, Chien Tung, Roland Dreier,
Jason Gunthorpe, linux-rdma, linux-kernel
On 05/09/18 09:01, Leon Romanovsky wrote:
> On Fri, Aug 31, 2018 at 10:24:18PM +0300, Igor Stoppa wrote:
>> Typically the assert is expected to not fail.
>
> This whole assert can be removed.
ok
>>
>> Signed-off-by: Igor Stoppa <igor.stoppa@huawei.com>
>> Acked-by: Doug Ledford <dledford@redhat.com>
>
> Most probably that I missed discussion, but anyway, does this
> "Acked-by" come from internal or external discussion?
https://lkml.org/lkml/2018/8/31/456
--
igor
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] infiniband: nes: add unlikely() to assert()
2018-09-05 6:01 ` Leon Romanovsky
2018-09-05 18:54 ` Igor Stoppa
@ 2018-09-07 15:13 ` Doug Ledford
2018-09-07 15:25 ` Igor Stoppa
1 sibling, 1 reply; 6+ messages in thread
From: Doug Ledford @ 2018-09-07 15:13 UTC (permalink / raw)
To: Leon Romanovsky, Igor Stoppa
Cc: Faisal Latif, Igor Stoppa, Chien Tung, Roland Dreier,
Jason Gunthorpe, linux-rdma, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 933 bytes --]
On Wed, 2018-09-05 at 09:01 +0300, Leon Romanovsky wrote:
> On Fri, Aug 31, 2018 at 10:24:18PM +0300, Igor Stoppa wrote:
> > Typically the assert is expected to not fail.
>
> This whole assert can be removed.
>
> >
> > Signed-off-by: Igor Stoppa <igor.stoppa@huawei.com>
> > Acked-by: Doug Ledford <dledford@redhat.com>
>
> Most probably that I missed discussion, but anyway, does this
> "Acked-by" come from internal or external discussion?
This patch was part of a larger series on lkml. In that context, I
acked it so that the series could be applied by whomever took it (it
didn't belong on rdma-list as a series since only one patch out of some
large number touched rdma files). Now it is being resent as not part of
a series, but my ack was preserved.
--
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: 833 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] infiniband: nes: add unlikely() to assert()
2018-09-07 15:13 ` Doug Ledford
@ 2018-09-07 15:25 ` Igor Stoppa
2018-09-07 17:31 ` Leon Romanovsky
0 siblings, 1 reply; 6+ messages in thread
From: Igor Stoppa @ 2018-09-07 15:25 UTC (permalink / raw)
To: Doug Ledford, Leon Romanovsky
Cc: Faisal Latif, Igor Stoppa, Chien Tung, Roland Dreier,
Jason Gunthorpe, linux-rdma, linux-kernel
On 07/09/18 18:13, Doug Ledford wrote:
> This patch was part of a larger series on lkml. In that context, I
> acked it so that the series could be applied by whomever took it (it
> didn't belong on rdma-list as a series since only one patch out of some
> large number touched rdma files). Now it is being resent as not part of
> a series, but my ack was preserved.
Yes, apologies for the confusion (and maybe wrong process?).
The patchset as a whole didn't seem to gain traction, so I decided to
fallback to the more tedious process of submitting them individually.
Since the specific patch was not altered, I assumed the ack was still
valid - I am sorry if I did it wrongly
--
igor
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] infiniband: nes: add unlikely() to assert()
2018-09-07 15:25 ` Igor Stoppa
@ 2018-09-07 17:31 ` Leon Romanovsky
0 siblings, 0 replies; 6+ messages in thread
From: Leon Romanovsky @ 2018-09-07 17:31 UTC (permalink / raw)
To: Igor Stoppa
Cc: Doug Ledford, Faisal Latif, Igor Stoppa, Chien Tung,
Roland Dreier, Jason Gunthorpe, linux-rdma, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 949 bytes --]
On Fri, Sep 07, 2018 at 06:25:03PM +0300, Igor Stoppa wrote:
> On 07/09/18 18:13, Doug Ledford wrote:
>
> > This patch was part of a larger series on lkml. In that context, I
> > acked it so that the series could be applied by whomever took it (it
> > didn't belong on rdma-list as a series since only one patch out of some
> > large number touched rdma files). Now it is being resent as not part of
> > a series, but my ack was preserved.
>
> Yes, apologies for the confusion (and maybe wrong process?).
> The patchset as a whole didn't seem to gain traction, so I decided to
> fallback to the more tedious process of submitting them individually.
>
> Since the specific patch was not altered, I assumed the ack was still
> valid - I am sorry if I did it wrongly
You didn't do anything wrong, I was curious because my gmail already
filtered some linux-rdma mails to wrong folder and I wasn't sure if
it is the case again.
Thanks
>
> --
> igor
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 801 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2018-09-07 17:31 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-31 19:24 [PATCH] infiniband: nes: add unlikely() to assert() Igor Stoppa
2018-09-05 6:01 ` Leon Romanovsky
2018-09-05 18:54 ` Igor Stoppa
2018-09-07 15:13 ` Doug Ledford
2018-09-07 15:25 ` Igor Stoppa
2018-09-07 17:31 ` Leon Romanovsky
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.