All of lore.kernel.org
 help / color / mirror / Atom feed
From: Doug Ledford <dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: Or Gerlitz <gerlitz.or-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: Jason Gunthorpe
	<jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>,
	Sagi Grimberg
	<sagig-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>,
	Christoph Hellwig <hch-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org>,
	"linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
	<linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	Steve Wise
	<swise-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org>
Subject: Re: device attr cleanup
Date: Tue, 22 Dec 2015 15:37:48 -0500	[thread overview]
Message-ID: <5679B49C.8030705@redhat.com> (raw)
In-Reply-To: <5679A254.2040809-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>

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

On 12/22/2015 02:19 PM, Doug Ledford wrote:
> On 12/22/2015 02:56 AM, Or Gerlitz wrote:
>> On Wed, Dec 16, 2015 at 7:53 AM, Or Gerlitz <ogerlitz-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org> wrote:
>>> On 12/15/2015 9:03 PM, Doug Ledford wrote:
>>
>>>> Or, you specifically asked me to wait until this week.  I made my
>>>> initial impressions clear (I don't necessarily like the removal of the
>>>> attr struct, but I like the removal of all of the query calls, and I'm
>>>> inclined to take the patch in spite of not liking the removal of the
>>>> struct).  Do you have anything to add or have we beat this horse to death?
>>
>>> Hi Doug,
>>> Lets stop beating, both horses and people.
>>> I do understand that
>>> 1. you don't link the removal of the attr
>>> 2. you do like the removal of all the query calls
>>>
>>> I am proposing to take the path of a patch that
>>> does exactly #2 while avoiding #1.
>>
>> Doug,
>>
>> Did you look on my v1 post and the related discussion there w.r.t udata?
> 
> Yes, I did.
> 
>> You didn't make any comment on my response here nor on the proposed patches.
> 
> I'm trying to find all of the emails, they aren't in a single thread in
> my mailbox (I had to do some reconstruction of my mailbox due to a
> problem in a mail filter late last week...missing that the rule was set
> to "match any" when I intended "match all" and the action of the rule
> was "delete" when I expected delete to be the same as "move to trash"
> and it wasn't, it was delete immediately, has caused me some problems).

OK, here's part of the problem.  The udata discussion was in your
original patch series, not the V1 series.  I don't have that in my
mailbox at all (it was a casualty of the aforementioned mailbox event,
and I probably could have recovered it at the time, but I didn't think I
needed the original thread, just the V1 thread, so I didn't).  However,
I looked things up on marc.info.  It would have been preferable to
either remove query_device from the hardware drivers or to rename it to
something that clearly denotes it is now a kernel internal call-in point
(say device->init_ib_dev_attr).  Christoph's patch doesn't really get
rid of each device's query_device, it just moves the code into each
device's init routine and drops the call point.  As far as I'm
concerned, leaving the code in a function and calling that function
either from each driver's init routine or from the core registration
function is neither here nor there to me, either would suffice.

>> Since we are really short in time w.r.t EOY holidays and we have the
>> udata matter
>> open (see [1]), could we move finalizing this discussion to the 4.6 time-frame?
>>
>> If you do have the time, I think it would be fair to see a response
>> from you on the
>> discussion before you pick any of the two patch sets - so??
> 
> I'm not inclined to take either patch set as they stand.  Your's is
> closer to what I'm leaning towards though.  I think I can add a single
> patch to yours to make it into what I want.  I'm going to go work on
> that right now...

After looking it over in detail, I'm not going to do what I had in mind.
 I still think the udata issue should be resolved, but I'm willing to
take that as a follow-on patch later on.  So, for now, I've taken in
your v1 patchset.  I'm now going to start seeing how many of the
patchsets I had also intended to take for 4.5 will need possible respins
in order to apply cleanly :-/

>> Or.
>>
>> [1] Christoph's patch doesn't remove the query_device callback from
>> mlx4 since we
>> report there values to libmlx4 through the udata mechanism. The
>> query_device callback
>> will need to be present in future/current drivers if they decide to
>> use udata as well



-- 
Doug Ledford <dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
              GPG KeyID: 0E572FDD



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 884 bytes --]

  parent reply	other threads:[~2015-12-22 20:37 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-08 21:00 device attr cleanup (was: Handle mlx4 max_sge_rd correctly) Or Gerlitz
     [not found] ` <CAJ3xEMj2EOxX1CiA93MPOsM-FdU9ijcWCYm9tObbkLqqja0PoA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-12-08 22:04   ` Doug Ledford
     [not found]     ` <566753E3.9060301-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2015-12-08 22:47       ` Or Gerlitz
     [not found]         ` <CAJ3xEMhaEnv9He7N5q8fFsRzy_j27wdE6KWSFF39UzA680udwA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-12-08 22:59           ` Jason Gunthorpe
     [not found]             ` <20151208225940.GB27609-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2015-12-08 23:02               ` Christoph Hellwig
     [not found]                 ` <20151208230244.GA10701-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org>
2015-12-08 23:49                   ` Jason Gunthorpe
2015-12-09  0:52                   ` ira.weiny
     [not found]                     ` <20151209005203.GD16976-W4f6Xiosr+yv7QzWx2u06xL4W9x8LtSr@public.gmane.org>
2015-12-09 18:42                       ` Christoph Hellwig
     [not found]                         ` <20151209184235.GB4522-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org>
2015-12-10  1:45                           ` ira.weiny
     [not found]                             ` <20151210014556.GA32059-W4f6Xiosr+yv7QzWx2u06xL4W9x8LtSr@public.gmane.org>
2015-12-10  8:27                               ` Sagi Grimberg
     [not found]                                 ` <56693758.90808-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
2015-12-10 16:07                                   ` Chuck Lever
     [not found]                                     ` <93E3DE8A-0589-436D-A9A1-7EAC66B12739-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
2015-12-10 16:10                                       ` Steve Wise
2015-12-10 17:17                                         ` Doug Ledford
2015-12-10 18:07                                       ` Jason Gunthorpe
     [not found]                                         ` <20151210180703.GC21482-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2015-12-10 23:30                                           ` Christoph Hellwig
     [not found]                                             ` <20151210233047.GB26009-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org>
2015-12-11  0:49                                               ` Chuck Lever
     [not found]                                                 ` <09F96E8A-5E1E-4345-9069-C07108AF0BC7-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
2015-12-11  6:54                                                   ` santosh.shilimkar-QHcLZuEGTsvQT0dZR+AlfA
2015-12-15 18:26                                                   ` Anna Schumaker
2015-12-23 21:31                                                   ` J. Bruce Fields
     [not found]                                                     ` <20151223213116.GB29650-uC3wQj2KruNg9hUCZPvPmw@public.gmane.org>
2015-12-24  3:19                                                       ` device attr cleanup Doug Ledford
     [not found]                                                         ` <567B6433.4050907-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2016-01-05 16:46                                                           ` Steve Wise
2016-01-05 17:32                                                             ` Or Gerlitz
2015-12-15  0:19                               ` device attr cleanup (was: Handle mlx4 max_sge_rd correctly) Chuck Lever
2015-12-15 16:52                           ` santosh shilimkar
2015-12-08 23:13               ` Or Gerlitz
     [not found]                 ` <CAJ3xEMiEYgsxiL6zR-Dia3Rxwriye1WHcadTmUjU7zV=ide1LA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-12-08 23:15                   ` Or Gerlitz
     [not found]                     ` <CAJ3xEMgQNMtxgTKC0zaKgy-WGugf6KwT7Ys5h3_RbN_7qd2=tg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-12-15 19:03                       ` device attr cleanup Doug Ledford
     [not found]                         ` <56706414.8010807-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2015-12-16  5:53                           ` Or Gerlitz
     [not found]                             ` <5670FC5E.8070405-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2015-12-16 13:40                               ` Sagi Grimberg
     [not found]                                 ` <567169B3.4040908-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
2015-12-16 14:03                                   ` Or Gerlitz
2015-12-22  7:56                               ` Or Gerlitz
     [not found]                                 ` <CAJ3xEMiGOF79o1OSgxgk2tN+kY91uiNY5Aq+xu2U0Sur-htxpQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-12-22 19:19                                   ` Doug Ledford
     [not found]                                     ` <5679A254.2040809-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2015-12-22 20:37                                       ` Doug Ledford [this message]
2015-12-09 18:44                   ` device attr cleanup (was: Handle mlx4 max_sge_rd correctly) Christoph Hellwig
     [not found]                     ` <20151209184448.GC4522-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org>
2015-12-10 17:46                       ` Doug Ledford
     [not found]                         ` <5669BA8E.30200-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2015-12-10 23:29                           ` Christoph Hellwig
     [not found]                             ` <20151210232956.GA26009-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org>
2015-12-11  4:56                               ` Doug Ledford
     [not found]                                 ` <566A5792.9080102-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2015-12-11  6:14                                   ` Jason Gunthorpe
     [not found]                                     ` <20151211061433.GB16513-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2015-12-11 17:10                                       ` Doug Ledford

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=5679B49C.8030705@redhat.com \
    --to=dledford-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
    --cc=gerlitz.or-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=hch-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org \
    --cc=jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org \
    --cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=sagig-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@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.