From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: Jean Delvare <khali@linux-fr.org>
Cc: linux-kernel@vger.kernel.org, Peter Wu <lekensteyn@gmail.com>
Subject: Re: Freeing of dev->p
Date: Sat, 25 Jan 2014 10:03:20 -0800 [thread overview]
Message-ID: <20140125180320.GA30684@kroah.com> (raw)
In-Reply-To: <20140122082911.532e3c25@endymion.delvare>
On Wed, Jan 22, 2014 at 08:29:11AM +0100, Jean Delvare wrote:
> Hi Greg,
>
> On Fri, 10 Jan 2014 07:24:02 -0800, Greg Kroah-Hartman wrote:
> > On Fri, Jan 10, 2014 at 03:39:07PM +0100, Jean Delvare wrote:
> > > (...)
> > > Then I suppose we could inline both functions
> > > again, for performance. Well, put in short, really revering
> > > b4028437876866aba4747a655ede00f892089e14 would be the way to go IMHO.
> > >
> > > Really, while I understand your envy to protect driver core internals
> > > from unwanted access, the cost here was simply too high IMHO, both in
> > > terms of getting things right and performance. Some drivers are calling
> > > dev_get_drvdata() directly or indirectly repeatedly at run-time. They
> > > had no reason not to as this used to be so fast, and now it is no
> > > longer an inline function, it has conditionals and a double pointer
> > > indirection...
> > >
> > > Plus, I can't think of anything really bad that could result from
> > > accessing driver_data directly, contrary to the other members of struct
> > > device_private.
> >
> > (...)
> >
> > Thanks for the detailed response, I think I'll just revert most of that
> > patch and see if it's still workable.
>
> Any news on this?
Stuck with dealing with merge-window issues and conferences, don't
worry, this isn't lost, it's still on my todo list...
thanks for your patience,
greg k-h
next prev parent reply other threads:[~2014-01-25 18:02 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-08 15:40 Freeing of dev->p Jean Delvare
2014-01-08 16:56 ` Greg Kroah-Hartman
2014-01-08 20:33 ` Jean Delvare
2014-01-10 4:18 ` Greg Kroah-Hartman
2014-01-10 14:39 ` Jean Delvare
2014-01-10 15:24 ` Greg Kroah-Hartman
2014-01-10 22:05 ` Jean Delvare
2014-01-22 7:29 ` Jean Delvare
2014-01-25 18:03 ` Greg Kroah-Hartman [this message]
2014-04-08 9:47 ` Grant Likely
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=20140125180320.GA30684@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=khali@linux-fr.org \
--cc=lekensteyn@gmail.com \
--cc=linux-kernel@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 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.