fix code style issue.
Signed-off-by: Sam Li <[email protected]>
---
block/io_uring.c | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/block/io_uring.c b/block/io_uring.c
index 2942967126..57745ecfa1 100644
--- a/block/io_uring.c
+++ b/block/io_uring.c
@@ -436,10 +436,15 @@ LuringState *luring_init(Error **errp)
ioq_init(&s->io_q);
if (io_uring_register_ring_fd(&s->ring) < 0) {
- error_setg_errno(errp, errno, "failed to register linux io_uring ring
file descriptor");
+ /*
+ * If the function fails, it will fallback to the non-optimized
io_uring
+ * operations.
+ */
+ error_setg_errno(errp, errno,
+ "failed to register linux io_uring ring file
descriptor");
}
- return s;
+ return s;
}
void luring_cleanup(LuringState *s)
--
2.35.1