virtualization.lists.linux-foundation.org archive mirror
 help / color / mirror / Atom feed
From: Jens Axboe <axboe@kernel.dk>
To: Rusty Russell <rusty@rustcorp.com.au>, Ming Lei <ming.lei@canonical.com>
Cc: virtualization@lists.linux-foundation.org,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	"Michael S. Tsirkin" <mst@redhat.com>
Subject: Re: [PATCH] block: virtio_blk: don't hold spin lock during world switch
Date: Mon, 02 Jun 2014 08:15:46 -0600	[thread overview]
Message-ID: <538C8712.20809@kernel.dk> (raw)
In-Reply-To: <87sino5cl2.fsf@rustcorp.com.au>

On 2014-06-01 19:23, Rusty Russell wrote:
> Jens Axboe <axboe@kernel.dk> writes:
>> On 2014-05-30 00:10, Rusty Russell wrote:
>>> Jens Axboe <axboe@kernel.dk> writes:
>>>> If Rusty agrees, I'd like to add it for 3.16 with a stable marker.
>>>
>>> Really stable?  It improves performance, which is nice.  But every patch
>>> which goes into the kernel fixes a bug, improves clarity, improves
>>> performance or adds a feature.  I've now seen all four cases get CC'd
>>> into stable.
>>>
>>> Including some of mine explicitly not marked stable which get swept up
>>> by enthusiastic stable maintainers :(
>>>
>>> Is now there *any* patch short of a major rewrite which shouldn't get
>>> cc: stable?
>>
>> I agree that there's sometimes an unfortunate trend there. I didn't
>> check, but my assumption was that this is a regression after the blk-mq
>> conversion, in which case I do think it belongs in stable.
>
> No, it's always been that way.  In the original driver the entire "issue
> requests" function was under the lock.
 >
 > It was your mq conversion which made this optimization possible, and
 > also made it an optimization: now other the queues can continue while
 > this one is going.

Ah, I stand corrected, you are right. I had this recollection that the 
prepare and kick where separate before as well, but apparently just bad 
memory.

>> But in any case, I think the patch is obviously correct and the wins are
>> sufficiently large to warrant a stable inclusion even if it isn't a
>> regression.
>
> If you're running SMP under an emulator where exits are expensive, then
> this wins.  Under KVM it's marginal at best.
>
> Locking changes which are "obviously correct" make me nervous, too :)

I tend to agree. But I think this one is simple enough to warrant doing 
it, when the performance increase is as large as it is.

> But IIRC last KS the argument is that not *enough* is going into stable,
> not that stable isn't stable enough.  So maybe it's a non-problem?

In principle, pushing the patch to stable definitely isn't an issue with 
the stable crew. And yes, they apparently do want more stuff. If you 
look at it from the distro side, having a stable(r) repository is a no 
brainer. And they'd want to pick this patch anyway, so...

-- 
Jens Axboe

  parent reply	other threads:[~2014-06-02 14:15 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1401418169-3361-1-git-send-email-ming.lei@canonical.com>
2014-05-30  3:19 ` [PATCH] block: virtio_blk: don't hold spin lock during world switch Jens Axboe
2014-05-30  3:34   ` Ming Lei
     [not found]   ` <CACVXFVPoG6_fL_MTRF+616W7UdHpSgjtMLBLeBn4OGR63haw3w@mail.gmail.com>
2014-05-30  3:35     ` Jens Axboe
2014-05-30  5:58       ` Ming Lei
2014-05-30  6:10       ` Rusty Russell
2014-05-30 13:52         ` Jens Axboe
2014-06-02  1:23           ` Rusty Russell
2014-06-02 13:06             ` Ming Lei
2014-06-11 14:44               ` Paolo Bonzini
2014-06-02 14:15             ` Jens Axboe [this message]
2014-05-30  6:05 ` Rusty Russell
2014-05-30 15:27 ` Michael S. Tsirkin
2014-05-30  2:49 Ming Lei

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=538C8712.20809@kernel.dk \
    --to=axboe@kernel.dk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ming.lei@canonical.com \
    --cc=mst@redhat.com \
    --cc=rusty@rustcorp.com.au \
    --cc=virtualization@lists.linux-foundation.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 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).