qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Jeff Cody <jcody@redhat.com>
To: John Snow <jsnow@redhat.com>
Cc: qemu-devel@nongnu.org, qemu-block@nongnu.org
Subject: Re: [Qemu-devel] [Qemu-block] [PATCH 3/3] ahci: don't schedule unnecessary BH
Date: Thu, 31 May 2018 12:22:39 -0400	[thread overview]
Message-ID: <20180531162239.GC11303@localhost.localdomain> (raw)
In-Reply-To: <20180531004323.4611-4-jsnow@redhat.com>

On Wed, May 30, 2018 at 08:43:23PM -0400, John Snow wrote:
> The comment gives us a hint. *Maybe* we still have something to
> process. Well, why not check?

Heh :)

Reviewed-by: Jeff Cody <jcody@redhat.com>

> 
> Signed-off-by: John Snow <jsnow@redhat.com>
> ---
>  hw/ide/ahci.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/hw/ide/ahci.c b/hw/ide/ahci.c
> index a9558e45e7..380366b038 100644
> --- a/hw/ide/ahci.c
> +++ b/hw/ide/ahci.c
> @@ -1427,8 +1427,7 @@ static void ahci_cmd_done(IDEDMA *dma)
>      /* update d2h status */
>      ahci_write_fis_d2h(ad);
>  
> -    if (!ad->check_bh) {
> -        /* maybe we still have something to process, check later */
> +    if (ad->port_regs.cmd_issue && !ad->check_bh) {
>          ad->check_bh = qemu_bh_new(ahci_check_cmd_bh, ad);
>          qemu_bh_schedule(ad->check_bh);
>      }
> -- 
> 2.14.3
> 
> 

  reply	other threads:[~2018-05-31 16:22 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-31  0:43 [Qemu-devel] [PATCH 0/3] ahci: fix completion race condition John Snow
2018-05-31  0:43 ` [Qemu-devel] [PATCH 1/3] ahci: trim signatures on raise/lower John Snow
2018-05-31 14:56   ` Eric Blake
2018-05-31 15:38     ` John Snow
2018-05-31 16:00   ` [Qemu-devel] [Qemu-block] " Jeff Cody
2018-05-31  0:43 ` [Qemu-devel] [PATCH 2/3] ahci: fix PxCI register race John Snow
2018-05-31 16:16   ` John Snow
2018-05-31 16:22   ` [Qemu-devel] [Qemu-block] " Jeff Cody
2018-05-31  0:43 ` [Qemu-devel] [PATCH 3/3] ahci: don't schedule unnecessary BH John Snow
2018-05-31 16:22   ` Jeff Cody [this message]
2018-05-31  8:01 ` [Qemu-devel] [Qemu-block] [PATCH 0/3] ahci: fix completion race condition Stefan Hajnoczi
2018-05-31 12:21 ` [Qemu-devel] " Bruce Rogers
2018-05-31 13:06   ` Philippe Mathieu-Daudé
2018-05-31 13:12     ` Bruce Rogers
2018-06-01  0:00 ` John Snow
2018-06-04  9:22   ` [Qemu-devel] [Qemu-block] " Stefan Hajnoczi

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=20180531162239.GC11303@localhost.localdomain \
    --to=jcody@redhat.com \
    --cc=jsnow@redhat.com \
    --cc=qemu-block@nongnu.org \
    --cc=qemu-devel@nongnu.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).