From 0b2d12eef1804fcaaf90c2671e2cdf359dbc2d0e Mon Sep 17 00:00:00 2001 From: Vitaliy Filippov Date: Thu, 20 Jul 2023 22:53:53 +0300 Subject: [PATCH] Remove has_work, it was unnecessary --- src/qemu_driver.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/qemu_driver.c b/src/qemu_driver.c index 7059c2c5..0e75c6cc 100644 --- a/src/qemu_driver.c +++ b/src/qemu_driver.c @@ -240,10 +240,7 @@ static void vitastor_uring_handler(void *opaque) VitastorClient *client = (VitastorClient*)opaque; qemu_mutex_lock(&client->mutex); client->bh_uring_scheduled = 0; - do - { - vitastor_c_uring_handle_events(client->proxy); - } while (vitastor_c_uring_has_work(client->proxy)); + vitastor_c_uring_handle_events(client->proxy); qemu_mutex_unlock(&client->mutex); }