qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] iSCSI: remove the now obsolete call to qemu_notify_event()
@ 2012-08-30 23:56 Ronnie Sahlberg
  2012-08-30 23:56 ` [Qemu-devel] [PATCH] iSCSI: We dont need to explicitely call qemu_notify_event() any more Ronnie Sahlberg
  0 siblings, 1 reply; 4+ messages in thread
From: Ronnie Sahlberg @ 2012-08-30 23:56 UTC (permalink / raw)
  To: pbonzini, qemu-devel

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Qemu-devel] [PATCH] iSCSI: We dont need to explicitely call qemu_notify_event() any more
  2012-08-30 23:56 [Qemu-devel] [PATCH] iSCSI: remove the now obsolete call to qemu_notify_event() Ronnie Sahlberg
@ 2012-08-30 23:56 ` Ronnie Sahlberg
  2012-09-07 23:22   ` ronnie sahlberg
  0 siblings, 1 reply; 4+ messages in thread
From: Ronnie Sahlberg @ 2012-08-30 23:56 UTC (permalink / raw)
  To: pbonzini, qemu-devel; +Cc: 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.

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
---
 block/iscsi.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)

diff --git a/block/iscsi.c b/block/iscsi.c
index 0b96165..355ce65 100644
--- a/block/iscsi.c
+++ b/block/iscsi.c
@@ -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

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] [PATCH] iSCSI: We dont need to explicitely call qemu_notify_event() any more
  2012-08-30 23:56 ` [Qemu-devel] [PATCH] iSCSI: We dont need to explicitely call qemu_notify_event() any more Ronnie Sahlberg
@ 2012-09-07 23:22   ` ronnie sahlberg
  2012-09-08 10:37     ` Paolo Bonzini
  0 siblings, 1 reply; 4+ messages in thread
From: ronnie sahlberg @ 2012-09-07 23:22 UTC (permalink / raw)
  To: pbonzini, qemu-devel; +Cc: Ronnie Sahlberg

Ping?

On Thu, Aug 30, 2012 at 4:56 PM, Ronnie Sahlberg
<ronniesahlberg@gmail.com> wrote:
> 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.
>
> Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
> ---
>  block/iscsi.c |    6 ------
>  1 files changed, 0 insertions(+), 6 deletions(-)
>
> diff --git a/block/iscsi.c b/block/iscsi.c
> index 0b96165..355ce65 100644
> --- a/block/iscsi.c
> +++ b/block/iscsi.c
> @@ -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
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] [PATCH] iSCSI: We dont need to explicitely call qemu_notify_event() any more
  2012-09-07 23:22   ` ronnie sahlberg
@ 2012-09-08 10:37     ` Paolo Bonzini
  0 siblings, 0 replies; 4+ messages in thread
From: Paolo Bonzini @ 2012-09-08 10:37 UTC (permalink / raw)
  To: ronnie sahlberg; +Cc: qemu-devel

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

Both are already in scsi-next, thanks!

Paolo

> On Thu, Aug 30, 2012 at 4:56 PM, Ronnie Sahlberg
> <ronniesahlberg@gmail.com> wrote:
>> 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.
>>
>> Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
>> ---
>>  block/iscsi.c |    6 ------
>>  1 files changed, 0 insertions(+), 6 deletions(-)
>>
>> diff --git a/block/iscsi.c b/block/iscsi.c
>> index 0b96165..355ce65 100644
>> --- a/block/iscsi.c
>> +++ b/block/iscsi.c
>> @@ -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
>>
> 
> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-09-08 10:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-30 23:56 [Qemu-devel] [PATCH] iSCSI: remove the now obsolete call to qemu_notify_event() Ronnie Sahlberg
2012-08-30 23:56 ` [Qemu-devel] [PATCH] iSCSI: We dont need to explicitely call qemu_notify_event() any more Ronnie Sahlberg
2012-09-07 23:22   ` ronnie sahlberg
2012-09-08 10:37     ` Paolo Bonzini

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).