Skip to content

Commit

Permalink
typo.
Browse files Browse the repository at this point in the history
Signed-off-by: Lipeng Zhu <[email protected]>
  • Loading branch information
lipzhu committed May 21, 2024
1 parent 144e210 commit 092fdc3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
5 changes: 0 additions & 5 deletions src/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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__) || \
Expand Down
6 changes: 3 additions & 3 deletions src/io_uring.c
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand All @@ -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))) {
Expand Down Expand Up @@ -247,6 +247,6 @@ void initIOUring(void) {}
void freeIOUring(void) {}

int handleClientsWithPendingWritesUsingIoUring(void) {
return 0
return 0;
}
#endif
2 changes: 1 addition & 1 deletion src/io_uring.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

0 comments on commit 092fdc3

Please sign in to comment.