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