diff --git a/src/config.h b/src/config.h index c6e8ef3550..2ff920a2a2 100644 --- a/src/config.h +++ b/src/config.h @@ -97,11 +97,6 @@ #define HAVE_EPOLL 1 #endif -/* Test for liburing API */ -#ifndef __linux__ -#define HAVE_LIBURING 0 -#endif - /* Test for accept4() */ #if defined(__linux__) || \ defined(__FreeBSD__) || \ diff --git a/src/io_uring.c b/src/io_uring.c index edf23f8ad0..bb5b483607 100644 --- a/src/io_uring.c +++ b/src/io_uring.c @@ -194,7 +194,7 @@ void ioUringCompleteWrite(void) { } /* This function is a variant of handleClientsWithPendingWrites, it use - * io_uring to hanlde the I/O write, try ot benifit the io_uring batching + * io_uring to handle the I/O write, try ot benefit the io_uring batching * feature to reduce the SYSCALL count for IO operations. * See https://github.com/axboe/liburing/wiki/io_uring-and-networking-in-2023#batching * for more info. */ @@ -218,7 +218,7 @@ int handleClientsWithPendingWritesUsingIoUring(void) { continue; } /* Try to submit write buffers to the client socket using io_uring. - * This is asycn operation. */ + * This is async operation. */ if (!(c->flags & (CLIENT_PENDING_IO_URING_WRITE | CLIENT_PENDING_IO_URING_WRITE_LIST | SLAVE_CLIENT_PENDING_IO_URING_WRITE))) { @@ -247,6 +247,6 @@ void initIOUring(void) {} void freeIOUring(void) {} int handleClientsWithPendingWritesUsingIoUring(void) { - return 0 + return 0; } #endif diff --git a/src/io_uring.h b/src/io_uring.h index 670c347dc8..e2f0bdefb2 100644 --- a/src/io_uring.h +++ b/src/io_uring.h @@ -10,7 +10,7 @@ void initIOUring(void); /* Free io_uring. */ void freeIOUring(void); -/* Hanle clients pending writes using io_uring. */ +/* Handle clients pending writes using io_uring. */ int handleClientsWithPendingWritesUsingIoUring(void); #endif /* IO_URING_H */