|
|
ae23c9 |
From 16e7c9997d4e9682095206ef3c07d713d263143c Mon Sep 17 00:00:00 2001
|
|
|
ae23c9 |
From: John Snow <jsnow@redhat.com>
|
|
|
ae23c9 |
Date: Tue, 10 Jul 2018 23:06:16 +0200
|
|
|
ae23c9 |
Subject: [PATCH 207/268] ahci: don't schedule unnecessary BH
|
|
|
ae23c9 |
|
|
|
ae23c9 |
RH-Author: John Snow <jsnow@redhat.com>
|
|
|
ae23c9 |
Message-id: <20180710230616.11000-4-jsnow@redhat.com>
|
|
|
ae23c9 |
Patchwork-id: 81292
|
|
|
ae23c9 |
O-Subject: [RHEL-7.6 qemu-kvm-rhev PATCH 3/3] ahci: don't schedule unnecessary BH
|
|
|
ae23c9 |
Bugzilla: 1584914
|
|
|
ae23c9 |
RH-Acked-by: Laurent Vivier <lvivier@redhat.com>
|
|
|
ae23c9 |
RH-Acked-by: Laszlo Ersek <lersek@redhat.com>
|
|
|
ae23c9 |
RH-Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
|
|
|
ae23c9 |
|
|
|
ae23c9 |
The comment gives us a hint. *Maybe* we still have something to
|
|
|
ae23c9 |
process. Well, why not check?
|
|
|
ae23c9 |
|
|
|
ae23c9 |
Signed-off-by: John Snow <jsnow@redhat.com>
|
|
|
ae23c9 |
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
|
|
|
ae23c9 |
Reviewed-by: Jeff Cody <jcody@redhat.com>
|
|
|
ae23c9 |
Message-id: 20180531004323.4611-4-jsnow@redhat.com
|
|
|
ae23c9 |
Signed-off-by: John Snow <jsnow@redhat.com>
|
|
|
ae23c9 |
(cherry picked from commit 42af312adef8afdae11d5f83d12a404b178dbda4)
|
|
|
ae23c9 |
Signed-off-by: John Snow <jsnow@redhat.com>
|
|
|
ae23c9 |
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
ae23c9 |
---
|
|
|
ae23c9 |
hw/ide/ahci.c | 3 +--
|
|
|
ae23c9 |
1 file changed, 1 insertion(+), 2 deletions(-)
|
|
|
ae23c9 |
|
|
|
ae23c9 |
diff --git a/hw/ide/ahci.c b/hw/ide/ahci.c
|
|
|
ae23c9 |
index a9558e4..380366b 100644
|
|
|
ae23c9 |
--- a/hw/ide/ahci.c
|
|
|
ae23c9 |
+++ b/hw/ide/ahci.c
|
|
|
ae23c9 |
@@ -1427,8 +1427,7 @@ static void ahci_cmd_done(IDEDMA *dma)
|
|
|
ae23c9 |
/* update d2h status */
|
|
|
ae23c9 |
ahci_write_fis_d2h(ad);
|
|
|
ae23c9 |
|
|
|
ae23c9 |
- if (!ad->check_bh) {
|
|
|
ae23c9 |
- /* maybe we still have something to process, check later */
|
|
|
ae23c9 |
+ if (ad->port_regs.cmd_issue && !ad->check_bh) {
|
|
|
ae23c9 |
ad->check_bh = qemu_bh_new(ahci_check_cmd_bh, ad);
|
|
|
ae23c9 |
qemu_bh_schedule(ad->check_bh);
|
|
|
ae23c9 |
}
|
|
|
ae23c9 |
--
|
|
|
ae23c9 |
1.8.3.1
|
|
|
ae23c9 |
|