5544c1b
From 05bfce1ee580c715dc3d220297b05097bdd007d2 Mon Sep 17 00:00:00 2001
5544c1b
From: Ronnie Sahlberg <ronniesahlberg@gmail.com>
5544c1b
Date: Thu, 30 Aug 2012 16:56:36 -0700
5544c1b
Subject: [PATCH] iSCSI: We dont need to explicitely call qemu_notify_event()
5544c1b
 any more
5544c1b
5544c1b
We no longer need to explicitely call qemu_notify_event() any more
5544c1b
since this is now done automatically any time the filehandles we listen
5544c1b
to change.
5544c1b
5544c1b
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
5544c1b
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
5544c1b
(cherry picked from commit 40a13ca8d28c21062e35b10d9b80e76b92405bdf)
5544c1b
5544c1b
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
5544c1b
---
5544c1b
 block/iscsi.c | 6 ------
5544c1b
 1 file changed, 6 deletions(-)
5544c1b
5544c1b
diff --git a/block/iscsi.c b/block/iscsi.c
5544c1b
index ea16609..fb001b9 100644
5544c1b
--- a/block/iscsi.c
5544c1b
+++ b/block/iscsi.c
5544c1b
@@ -167,12 +167,6 @@ iscsi_set_events(IscsiLun *iscsilun)
5544c1b
 
5544c1b
     }
5544c1b
 
5544c1b
-    /* If we just added an event, the callback might be delayed
5544c1b
-     * unless we call qemu_notify_event().
5544c1b
-     */
5544c1b
-    if (ev & ~iscsilun->events) {
5544c1b
-        qemu_notify_event();
5544c1b
-    }
5544c1b
     iscsilun->events = ev;
5544c1b
 }
5544c1b