]> git.proxmox.com Git - qemu.git/commit - block/iscsi.c
ISCSI: redo how we set up the events
authorRonnie Sahlberg <ronniesahlberg@gmail.com>
Tue, 22 May 2012 09:56:36 +0000 (19:56 +1000)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 28 May 2012 12:04:06 +0000 (14:04 +0200)
commitc9b9f6824fd82058f6918b64d8fd9b1578fac353
tree4a09da68c2d313cc249dc9be40df62f117928ddb
parent12badfc2385ae6822cbcbcc8d1c0ed71c9e0ff09
ISCSI: redo how we set up the events

Call qemu_notify_event() after updating events.  Otherwise, If we add
an event for -is-writeable but the socket is already writeable there
may be a delay before the event callback is actually triggered.

Those delays would in particular hurt performance during BIOS boot and
when the GRUB bootloader reads the kernel and initrd.

But first call out to the socket write functions directly, and only set up
the write event if the socket is full.  This will happen very rarely and
this improves performance.

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
block/iscsi.c