linux-rdma.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jason Gunthorpe <jgg@ziepe.ca>
To: Michal Kalderon <michal.kalderon@marvell.com>
Cc: ariel.elior@marvell.com, dledford@redhat.com, linux-rdma@vger.kernel.org
Subject: Re: [PATCH v4 rdma-next 0/4] RDMA/qedr: Fix memory leaks and synchronization
Date: Mon, 28 Oct 2019 14:07:32 -0300	[thread overview]
Message-ID: <20191028170732.GA32173@ziepe.ca> (raw)
In-Reply-To: <20191027200451.28187-1-michal.kalderon@marvell.com>

On Sun, Oct 27, 2019 at 10:04:47PM +0200, Michal Kalderon wrote:
> Several leaks and issues were found when running iWARP with kmemleak.
> some apply to RoCE as well.
> 
> This series fixes some memory leaks and some wrong methods of
> synchronization which were used to wait for iWARP CM related events.
> 
> Changes from V3
> - call xa_init for the qpids xarray.
> - add another patch that calls xa_init_flags for srqs xarray.
> 
> Changes from V2
> - Add a new separate patch that fixes the xarray api that was used
>   for the qps xarray, there was no need to use the _irq version of
>   the api.
> 
> - Move xa_erase of qp_id to be right before the qp resources are
>   released. This fixes a race where the qp-id can be reassigned
>   before removed from the xarray.
> 
> - Modify places that call kref_get_unless_zero to kref_get since we
>   already hold a valid pointer.
> 
> - Comment about the usage of the same completion structure for two
>   different completions.
> 
> - Add Fixes tag
> 
> Changes from v1
> - When removing the qp from the xarray xa_erase should be used and
>   not xa_erase_irq as this can't be called from irq context.
> 
> - Add xa_lock around loading a qp from the xarray and increase the
>   refcnt only under the xa_lock and only if not zero. This is to make
>   qedr more robust and not rely on the core/iwcm implementation to
>   assure correctness.
> 
> - Complete the iwarp_cm_comp event only if the bit was turned on and
>   the destroy qp flow will attempt to look at the completion
> 
> 
> Michal Kalderon (4):
>   RDMA/qedr: Fix srqs xarray initialization
>   RDMA/qedr: Fix qpids xarray api used
>   RDMA/qedr: Fix synchronization methods and memory leaks in qedr
>   RDMA/qedr: Fix memory leak in user qp and mr

Applied to for-next, thanks

Jason

      parent reply	other threads:[~2019-10-28 17:07 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-27 20:04 [PATCH v4 rdma-next 0/4] RDMA/qedr: Fix memory leaks and synchronization Michal Kalderon
2019-10-27 20:04 ` [PATCH v4 rdma-next 1/4] RDMA/qedr: Fix srqs xarray initialization Michal Kalderon
2019-10-27 20:04 ` [PATCH v4 rdma-next 2/4] RDMA/qedr: Fix qpids xarray api used Michal Kalderon
2019-10-27 20:04 ` [PATCH v4 rdma-next 3/4] RDMA/qedr: Fix synchronization methods and memory leaks in qedr Michal Kalderon
2019-10-27 20:04 ` [PATCH v4 rdma-next 4/4] RDMA/qedr: Fix memory leak in user qp and mr Michal Kalderon
2019-10-28 17:07 ` Jason Gunthorpe [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=20191028170732.GA32173@ziepe.ca \
    --to=jgg@ziepe.ca \
    --cc=ariel.elior@marvell.com \
    --cc=dledford@redhat.com \
    --cc=linux-rdma@vger.kernel.org \
    --cc=michal.kalderon@marvell.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: 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;
as well as URLs for NNTP newsgroup(s).