From: Jeremy Fitzhardinge <jeremy@goop.org>
To: Daniel Stodden <daniel.stodden@citrix.com>
Cc: "Xen-devel@lists.xensource.com" <Xen-devel@lists.xensource.com>
Subject: Re: Re: de-BKLing blkfront
Date: Wed, 21 Jul 2010 14:39:00 -0700 [thread overview]
Message-ID: <4C4768F4.2020602@goop.org> (raw)
In-Reply-To: <1279746741.3752.377.camel@agari.van.xensource.com>
On 07/21/2010 02:12 PM, Daniel Stodden wrote:
> On Wed, 2010-07-21 at 15:49 -0400, Jeremy Fitzhardinge wrote:
>
>> When I was preparing the latest set of blkfront patches to send upstream
>> to Jens Axboe, he pointed out there were conflicts with what he
>> currently has queued.
>>
>> It turns out the conflict was from pushing the BKL (lock/unlock_kernel)
>> into the open and release functions. I did the merge keeping them
>> around all the new stuff you added to those functions, but I wonder if
>> its actually necessary. Do we rely on open/release being globally
>> serialized in there?
>>
>> I've pushed what I have into the upstream/blkfront branch in xen.git.
>>
> Whatever it was, a BLK presumably fixed it.
>
There's an ongoing project to remove the BKL; part of that is to remove
implicit use of the BKL from the core kernel and push uses down to
drivers which need it. That basically means mechanically adding
lock_kernel/unlock_kernel pairs to driver functions as they're removed
from the core kernel. blkfront got hit with that at some point (haven't
identified precisely where), so we have the option to remove those
lock/unlocks if they're not necessary.
> Anyway, it should not be necessary any more.
>
> Next I made the common mistake of looking into my code again, and
> immediately found I would send an unlucky opener transiently spinning in
> blkdev_get. Sometimes I wonder what I'm thinking.
>
What's the effect of that?
> Hold on for a patch to both.
>
Thanks. BTW, did you get a change to look into those barrier comments?
J
next prev parent reply other threads:[~2010-07-21 21:39 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-21 19:49 de-BKLing blkfront Jeremy Fitzhardinge
2010-07-21 21:12 ` Daniel Stodden
2010-07-21 21:39 ` Jeremy Fitzhardinge [this message]
2010-07-21 22:26 ` Daniel Stodden
2010-07-21 23:32 ` Jeremy Fitzhardinge
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=4C4768F4.2020602@goop.org \
--to=jeremy@goop.org \
--cc=Xen-devel@lists.xensource.com \
--cc=daniel.stodden@citrix.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 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.