mirror of https://github.com/xqemu/xqemu.git
block/iscsi: drop iscsi_process_flush()
.io_flush() is no longer called so drop iscsi_process_flush(). Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
This commit is contained in:
parent
372835fbc3
commit
70ecdc6e4e
|
@ -146,13 +146,6 @@ static const AIOCBInfo iscsi_aiocb_info = {
|
||||||
static void iscsi_process_read(void *arg);
|
static void iscsi_process_read(void *arg);
|
||||||
static void iscsi_process_write(void *arg);
|
static void iscsi_process_write(void *arg);
|
||||||
|
|
||||||
static int iscsi_process_flush(void *arg)
|
|
||||||
{
|
|
||||||
IscsiLun *iscsilun = arg;
|
|
||||||
|
|
||||||
return iscsi_queue_length(iscsilun->iscsi) > 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
iscsi_set_events(IscsiLun *iscsilun)
|
iscsi_set_events(IscsiLun *iscsilun)
|
||||||
{
|
{
|
||||||
|
@ -166,7 +159,7 @@ iscsi_set_events(IscsiLun *iscsilun)
|
||||||
qemu_aio_set_fd_handler(iscsi_get_fd(iscsi),
|
qemu_aio_set_fd_handler(iscsi_get_fd(iscsi),
|
||||||
iscsi_process_read,
|
iscsi_process_read,
|
||||||
(ev & POLLOUT) ? iscsi_process_write : NULL,
|
(ev & POLLOUT) ? iscsi_process_write : NULL,
|
||||||
iscsi_process_flush,
|
NULL,
|
||||||
iscsilun);
|
iscsilun);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue