public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
From: Doug Ledford <dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: Dennis Dalessandro
	<dennis.dalessandro-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>,
	Steve Wise
	<swise-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org>
Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH for-next] iw_cxgb4: remove BUG_ON() usage.
Date: Mon, 13 Nov 2017 15:13:18 -0500	[thread overview]
Message-ID: <1510603998.3735.29.camel@redhat.com> (raw)
In-Reply-To: <e0576722-2c47-9020-34b4-dea7983600a9-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>

[-- Attachment #1: Type: text/plain, Size: 1507 bytes --]

On Mon, 2017-11-06 at 09:23 -0500, Dennis Dalessandro wrote:
> On 11/2/2017 5:11 PM, Steve Wise wrote:
> > iw_cxgb4 has many BUG_ON()s that were left over from various enhancemnets
> > made over the years.  Almost all of them should just be removed.  Some,
> > however indicate a ULP usage error and can be handled w/o bringing down
> > the system.
> > 
> > If the condition cannot happen with correctly implemented cxgb4 sw/fw,
> > then remove the BUG_ON.
> > 
> > If the condition indicates a misbehaving ULP (like CQ overflows), add
> > proper recovery logic.
> > 
> > Signed-off-by: Steve Wise <swise-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org>
> > ---
> >   drivers/infiniband/hw/cxgb4/cm.c       | 25 +++++++++----------------
> >   drivers/infiniband/hw/cxgb4/cq.c       | 10 ----------
> >   drivers/infiniband/hw/cxgb4/id_table.c |  1 -
> >   drivers/infiniband/hw/cxgb4/iw_cxgb4.h |  1 -
> >   drivers/infiniband/hw/cxgb4/provider.c |  4 ++--
> >   drivers/infiniband/hw/cxgb4/qp.c       |  3 ---
> >   drivers/infiniband/hw/cxgb4/t4.h       |  7 ++-----
> >   7 files changed, 13 insertions(+), 38 deletions(-)
> 
> Awesome to see these go away.
> 
> Reviewed-by: Dennis Dalessandro <dennis.dalessandro-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>

Thanks Steve, nice cleanup.  Applied.

-- 
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: 833 bytes --]

      parent reply	other threads:[~2017-11-13 20:13 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-02 21:11 [PATCH for-next] iw_cxgb4: remove BUG_ON() usage Steve Wise
     [not found] ` <20171103195527.E4AE72BC82-ff04S8wfc4plDsoTORJclLwze2ij/50Q0E9HWUfgJXw@public.gmane.org>
2017-11-06 14:23   ` Dennis Dalessandro
     [not found]     ` <e0576722-2c47-9020-34b4-dea7983600a9-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2017-11-13 20:13       ` Doug Ledford [this message]

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=1510603998.3735.29.camel@redhat.com \
    --to=dledford-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
    --cc=dennis.dalessandro-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
    --cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=swise-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox