All of lore.kernel.org
 help / color / mirror / Atom feed
From: Leon Romanovsky <leon-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
To: Chien Tin Tung <chien.tin.tung-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
Cc: Mustafa Ismail
	<mustafa.ismail-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>,
	linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org,
	swise-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org,
	e1000-rdma-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org,
	shiraz.saleem-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org
Subject: Re: [PATCH] RDMA/core: Add wait/retry version of ibnl_unicast
Date: Wed, 28 Jun 2017 18:36:39 +0300	[thread overview]
Message-ID: <20170628153639.GF1248@mtr-leonro.local> (raw)
In-Reply-To: <20170628141211.GA16312-TZeIlv3TuzOfrEmaQUPKxl95YUYmaKo1UNDiOz3kqAs@public.gmane.org>

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

On Wed, Jun 28, 2017 at 09:12:11AM -0500, Chien Tin Tung wrote:
> On Wed, Jun 28, 2017 at 09:02:45AM -0500, Mustafa Ismail wrote:
> > Add a wait/retry version of ibnl_unicast, ibnl_unicast_wait,
> > and modify ibnl_unicast to not wait/retry.  This eliminates
> > the undesirable wait for future users of ibnl_unicast.
> >
> > Change Portmapper calls originating from kernel to user-space
> > to use ibnl_unicast_wait and take advantage of the wait/retry
> > logic in netlink_unicast.
> >
> > Signed-off-by: Mustafa Ismail <mustafa.ismail-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
> > Signed-off-by: Chien Tin Tung <chien.tin.tung-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
> > ---
> >  drivers/infiniband/core/iwpm_msg.c |  6 +++---
> >  drivers/infiniband/core/netlink.c  | 12 +++++++++++-
> >  include/rdma/rdma_netlink.h        | 10 ++++++++++
> >  3 files changed, 24 insertions(+), 4 deletions(-)
>
> Please apply this patch instead of Leon's patch to revert
> "IB/core: Add flow control to the portmapper netlink calls".
>
> Leon, we can work out names and parameters if this works for you.

Chien,

The names are less my worries with this patch. First of all, it misleads
by using wait/retry naming, because it blocks and not waits. The second,
I disagree with solution in kernel for user space application which can't
handle the netlink errors. Can you please explain why the kernel fix is
unavoidable and the bug in the user space application is not needed to
be fixed?

Thanks

>
> Chien

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  parent reply	other threads:[~2017-06-28 15:36 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-28 14:02 [PATCH] RDMA/core: Add wait/retry version of ibnl_unicast Mustafa Ismail
     [not found] ` <1498658565-3408-1-git-send-email-mustafa.ismail-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2017-06-28 14:12   ` Chien Tin Tung
     [not found]     ` <20170628141211.GA16312-TZeIlv3TuzOfrEmaQUPKxl95YUYmaKo1UNDiOz3kqAs@public.gmane.org>
2017-06-28 15:36       ` Leon Romanovsky [this message]
     [not found]         ` <20170628153639.GF1248-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>
2017-06-28 20:30           ` Chien Tin Tung
     [not found]             ` <20170628203003.GA23300-TZeIlv3TuzOfrEmaQUPKxl95YUYmaKo1UNDiOz3kqAs@public.gmane.org>
2017-06-29  5:04               ` Leon Romanovsky
     [not found]                 ` <20170629050436.GO1248-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>
2017-06-29 15:02                   ` Chien Tin Tung
     [not found]                     ` <20170629150249.GA21856-TZeIlv3TuzOfrEmaQUPKxl95YUYmaKo1UNDiOz3kqAs@public.gmane.org>
2017-06-29 16:37                       ` Leon Romanovsky
     [not found]                         ` <20170629163719.GC12009-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>
2017-06-29 19:31                           ` Chien Tin Tung

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=20170628153639.GF1248@mtr-leonro.local \
    --to=leon-dgejt+ai2ygdnm+yrofe0a@public.gmane.org \
    --cc=chien.tin.tung-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
    --cc=dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
    --cc=e1000-rdma-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    --cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=mustafa.ismail-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
    --cc=shiraz.saleem-ral2JQCrhuEAvxtiuMwx3w@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 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.