Skip to contentSkip to conversation

iSCSI: remove the now obsolete call to qemu_notify_event()

PATCH New Ronnie Sahlberg 2 participants 4 messages Aug 30, 2012 – Sep 8, 2012 Block layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iSCSI: remove the now obsolete call to qemu_notify_event()

Paolo, List

Please find a trivial patch to iscsi that removes the call to qemu_notify_event() We do not need to call this any more since a recent patch that made qemu_aio_set_fd_handler() and friends invoke this call automatically when required.

regards
ronnie sahlberg

#1 lore raw

PATCH 1/1 iSCSI: We dont need to explicitely call qemu_notify_event() any more

We no longer need to explicitely call qemu_notify_event() any more since this is now done automatically any time the filehandles we listen to change.

---
 block/iscsi.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)
block/iscsi.c +0 -6
index 0b96165..355ce65 100644
@@ -167,12 +167,6 @@ iscsi_set_events(IscsiLun *iscsilun)
 
     }
 
-    /* If we just added an event, the callback might be delayed
-     * unless we call qemu_notify_event().
-     */
-    if (ev & ~iscsilun->events) {
-        qemu_notify_event();
-    }
     iscsilun->events = ev;
 }
 
Signature · 1 line
1.7.3.1
#2 lore raw

Re: [Qemu-devel] [PATCH] iSCSI: We dont need to explicitely call qemu_notify_event() any more

Ping?

Quoted 27 lines · Ronnie Sahlberg

We no longer need to explicitely call qemu_notify_event() any more since this is now done automatically any time the filehandles we listen to change.

---
 block/iscsi.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)
block/iscsi.c +0 -7
index 0b96165..355ce65 100644
@@ -167,12 +167,6 @@ iscsi_set_events(IscsiLun *iscsilun)
 
     }
 
-    /* If we just added an event, the callback might be delayed
-     * unless we call qemu_notify_event().
-     */
-    if (ev & ~iscsilun->events) {
-        qemu_notify_event();
-    }
     iscsilun->events = ev;
 }
 
--

1.7.3.1

#3 lore raw

Re: [Qemu-devel] [PATCH] iSCSI: We dont need to explicitely call qemu_notify_event() any more

Il 08/09/2012 01:22, ronnie sahlberg ha scritto:

Quoted 1 line

Ping?

Both are already in scsi-next, thanks!

Paolo

Quoted 31 lines
Quoted 27 lines · Ronnie Sahlberg

We no longer need to explicitely call qemu_notify_event() any more since this is now done automatically any time the filehandles we listen to change.

---
 block/iscsi.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)
block/iscsi.c +0 -7
index 0b96165..355ce65 100644
@@ -167,12 +167,6 @@ iscsi_set_events(IscsiLun *iscsilun)
 
     }
 
-    /* If we just added an event, the callback might be delayed
-     * unless we call qemu_notify_event().
-     */
-    if (ev & ~iscsilun->events) {
-        qemu_notify_event();
-    }
     iscsilun->events = ev;
 }
 
--

1.7.3.1