From 61f74d8f7c4670abd4160a7bafcced0e2a7e9c1d Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Fri, 10 Nov 2023 01:27:03 +0100 Subject: [PATCH 1/2] man/io_uring_queue_init.3: Fix typo Warned-by: lintian Signed-off-by: Guillem Jover --- man/io_uring_queue_init.3 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/man/io_uring_queue_init.3 b/man/io_uring_queue_init.3 index 75d114ac5..92c195100 100644 --- a/man/io_uring_queue_init.3 +++ b/man/io_uring_queue_init.3 @@ -48,7 +48,7 @@ the ring enters a CQ ring overflow state. Otherwise it drops the CQEs and increments .I cq.koverflow in -.I stuct io_uring +.I struct io_uring with the number of CQEs dropped. The overflow state is indicated by .B IORING_SQ_CQ_OVERFLOW being set in the SQ ring flags. Unless the kernel runs out of available memory, From 2c89b57f3d55b2e3098a629e8aabe659fd5ec138 Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Fri, 10 Nov 2023 01:49:30 +0100 Subject: [PATCH 2/2] Fix typos Warned-by: codespell Signed-off-by: Guillem Jover --- README | 2 +- make-debs.sh | 2 +- man/io_uring_register.2 | 2 +- src/setup.c | 2 +- test/eventfd-reg.c | 2 +- test/file-verify.c | 2 +- test/multicqes_drain.c | 2 +- test/socket-getsetsock-cmd.c | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README b/README index 9c881ae75..3e41a8f78 100644 --- a/README +++ b/README @@ -54,7 +54,7 @@ Building liburing # Prepare build config (optional). # # --cc specifies the C compiler. - # --cxx speficies the C++ compiler. + # --cxx specifies the C++ compiler. # ./configure --cc=gcc --cxx=g++; diff --git a/make-debs.sh b/make-debs.sh index 8d4fdc312..aa0974dba 100755 --- a/make-debs.sh +++ b/make-debs.sh @@ -45,7 +45,7 @@ if [ "$cur_ver" != "$version-1" ]; then $DCH -D $distro --force-distribution -b -v "$version-1" "new version" fi -# Create tar archieve +# Create tar archive cd ../ tar cvzf ${outfile}.tar.gz ${outfile} ln -s ${outfile}.tar.gz ${orgfile}.orig.tar.gz diff --git a/man/io_uring_register.2 b/man/io_uring_register.2 index bd600dbc0..fbfae2a4f 100644 --- a/man/io_uring_register.2 +++ b/man/io_uring_register.2 @@ -505,7 +505,7 @@ must be set to an pointer to an array of two values, with the values in the array being set to the maximum count of workers per NUMA node. Index 0 holds the bounded worker count, and index 1 holds the unbounded worker count. On successful return, the -passed in array will contain the previous maximum valyes for each type. If the +passed in array will contain the previous maximum values for each type. If the count being passed in is 0, then this command returns the current maximum values and doesn't modify the current setting. .I nr_args diff --git a/src/setup.c b/src/setup.c index 6d06c9988..ab01ec615 100644 --- a/src/setup.c +++ b/src/setup.c @@ -380,7 +380,7 @@ static int io_uring_queue_init_try_nosqarr(unsigned entries, struct io_uring *ri * Like io_uring_queue_init_params(), except it allows the application to pass * in a pre-allocated memory range that is used for the shared data between * the kernel and the application. This includes the sqes array, and the two - * rings. The memory must be contigious, the use case here is that the app + * rings. The memory must be contiguous, the use case here is that the app * allocates a huge page and passes it in. * * Returns the number of bytes used in the buffer, the app can then reuse diff --git a/test/eventfd-reg.c b/test/eventfd-reg.c index 808881d09..6514f48da 100644 --- a/test/eventfd-reg.c +++ b/test/eventfd-reg.c @@ -43,7 +43,7 @@ int main(int argc, char *argv[]) return T_EXIT_FAIL; } - /* Check that registrering again will get -EBUSY */ + /* Check that registering again will get -EBUSY */ ret = io_uring_register_eventfd(&ring, evfd[1]); if (ret != -EBUSY) { fprintf(stderr, "unexpected 2nd register: %d\n", ret); diff --git a/test/file-verify.c b/test/file-verify.c index 89cbb0244..e4ad822fd 100644 --- a/test/file-verify.c +++ b/test/file-verify.c @@ -28,7 +28,7 @@ #define MAX_VECS 16 /* - * Can be anything, let's just do something for a bit of parallellism + * Can be anything, let's just do something for a bit of parallelism */ #define READ_BATCH 16 diff --git a/test/multicqes_drain.c b/test/multicqes_drain.c index 6c4d5f2ba..0c46f33d8 100644 --- a/test/multicqes_drain.c +++ b/test/multicqes_drain.c @@ -233,7 +233,7 @@ static int test_generic_drain(struct io_uring *ring) } sleep(1); - // TODO: randomize event triggerring order + // TODO: randomize event triggering order for (i = 0; i < max_entry; i++) { if (si[i].op != multi && si[i].op != single) continue; diff --git a/test/socket-getsetsock-cmd.c b/test/socket-getsetsock-cmd.c index 2d91de4c0..d8fce2874 100644 --- a/test/socket-getsetsock-cmd.c +++ b/test/socket-getsetsock-cmd.c @@ -277,7 +277,7 @@ static int run_setsockopt_test(struct io_uring *ring, struct fds *sockfds) return err; } -/* Send data throughts the sockets */ +/* Send data through the sockets */ static void send_data(struct fds *s) { int written_bytes;