mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Saeed Mahameed <saeedm@mellanox.com>
To: "leon@kernel.org" <leon@kernel.org>
Cc: "jgg@ziepe.ca" <jgg@ziepe.ca>,
	"dledford@redhat.com" <dledford@redhat.com>,
	"davem@davemloft.net" <davem@davemloft.net>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"hslester96@gmail.com" <hslester96@gmail.com>,
	"linux-rdma@vger.kernel.org" <linux-rdma@vger.kernel.org>,
	"netdev@vger.kernel.org" <netdev@vger.kernel.org>
Subject: Re: [PATCH v3] mlx5: Use refcount_t for refcount
Date: Wed, 7 Aug 2019 18:03:43 +0000	[thread overview]
Message-ID: <71b2d9688834a69d8db587dd01f92088fd9bf497.camel@mellanox.com> (raw)
In-Reply-To: <20190807031717.GB4832@mtr-leonro.mtl.com>

On Wed, 2019-08-07 at 06:17 +0300, Leon Romanovsky wrote:
> On Tue, Aug 06, 2019 at 08:40:11PM +0000, Saeed Mahameed wrote:
> > On Tue, 2019-08-06 at 09:59 +0800, Chuhong Yuan wrote:
> > > Reference counters are preferred to use refcount_t instead of
> > > atomic_t.
> > > This is because the implementation of refcount_t can prevent
> > > overflows and detect possible use-after-free.
> > > So convert atomic_t ref counters to refcount_t.
> > > 
> > > Signed-off-by: Chuhong Yuan <hslester96@gmail.com>
> > > ---
> > > Changes in v3:
> > >   - Merge v2 patches together.
> > > 
> > >  drivers/infiniband/hw/mlx5/srq_cmd.c         | 6 +++---
> > >  drivers/net/ethernet/mellanox/mlx5/core/qp.c | 6 +++---
> > >  include/linux/mlx5/driver.h                  | 3 ++-
> > >  3 files changed, 8 insertions(+), 7 deletions(-)
> > > 
> > 
> > LGTM, Leon, let me know if you are happy with this version,
> > this should go to mlx5-next.
> 
> Thanks,
> Acked-by: Leon Romanovsky <leonro@mellanox.com>

Applied to mlx5-next.

Thanks !

      reply	other threads:[~2019-08-07 18:03 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-06  1:59 Chuhong Yuan
2019-08-06 20:40 ` Saeed Mahameed
2019-08-07  3:17   ` Leon Romanovsky
2019-08-07 18:03     ` Saeed Mahameed [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=71b2d9688834a69d8db587dd01f92088fd9bf497.camel@mellanox.com \
    --to=saeedm@mellanox.com \
    --cc=davem@davemloft.net \
    --cc=dledford@redhat.com \
    --cc=hslester96@gmail.com \
    --cc=jgg@ziepe.ca \
    --cc=leon@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-rdma@vger.kernel.org \
    --cc=netdev@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

all inboxes | Powered by JetHome®