Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

io_uring: fix typos and comment wording

Corrected spelling mistakes in comments
"reuqests" -> "requests", "noifications" -> "notifications",
"seperately" -> "separately").

Fixed a small grammar issue ("then" -> "than").
Updated "flag" -> "flags" in fdinfo.c

Signed-off-by: Alok Tiwari <alok.a.tiwari@oracle.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

Alok Tiwari and committed by
Jens Axboe
59f44afb 4b25b75c

+7 -7
+1 -1
io_uring/fdinfo.c
··· 156 156 cqe = &r->cqes[(cq_head & cq_mask)]; 157 157 if (cqe->flags & IORING_CQE_F_32 || ctx->flags & IORING_SETUP_CQE32) 158 158 cqe32 = true; 159 - seq_printf(m, "%5u: user_data:%llu, res:%d, flag:%x", 159 + seq_printf(m, "%5u: user_data:%llu, res:%d, flags:%x", 160 160 cq_head & cq_mask, cqe->user_data, cqe->res, 161 161 cqe->flags); 162 162 if (cqe32)
+2 -2
io_uring/io_uring.c
··· 882 882 } 883 883 884 884 /* 885 - * Must be called from inline task_work so we now a flush will happen later, 885 + * Must be called from inline task_work so we know a flush will happen later, 886 886 * and obviously with ctx->uring_lock held (tw always has that). 887 887 */ 888 888 void io_add_aux_cqe(struct io_ring_ctx *ctx, u64 user_data, s32 res, u32 cflags) ··· 1209 1209 BUILD_BUG_ON(IO_CQ_WAKE_FORCE <= IORING_MAX_CQ_ENTRIES); 1210 1210 1211 1211 /* 1212 - * We don't know how many reuqests is there in the link and whether 1212 + * We don't know how many requests there are in the link and whether 1213 1213 * they can even be queued lazily, fall back to non-lazy. 1214 1214 */ 1215 1215 if (req->flags & IO_REQ_LINK_FLAGS)
+1 -1
io_uring/notif.c
··· 93 93 prev_nd = container_of(prev_uarg, struct io_notif_data, uarg); 94 94 prev_notif = cmd_to_io_kiocb(prev_nd); 95 95 96 - /* make sure all noifications can be finished in the same task_work */ 96 + /* make sure all notifications can be finished in the same task_work */ 97 97 if (unlikely(notif->ctx != prev_notif->ctx || 98 98 notif->tctx != prev_notif->tctx)) 99 99 return -EEXIST;
+3 -3
io_uring/rw.c
··· 186 186 * This is really a bug in the core code that does this, any issue 187 187 * path should assume that a successful (or -EIOCBQUEUED) return can 188 188 * mean that the underlying data can be gone at any time. But that 189 - * should be fixed seperately, and then this check could be killed. 189 + * should be fixed separately, and then this check could be killed. 190 190 */ 191 191 if (!(req->flags & (REQ_F_REISSUE | REQ_F_REFCOUNT))) { 192 192 req->flags &= ~REQ_F_NEED_CLEANUP; ··· 349 349 350 350 /* 351 351 * Have to do this validation here, as this is in io_read() rw->len 352 - * might have chanaged due to buffer selection 352 + * might have changed due to buffer selection 353 353 */ 354 354 return io_iov_buffer_select_prep(req); 355 355 } ··· 1020 1020 iov_iter_restore(&io->iter, &io->iter_state); 1021 1021 } while (ret > 0); 1022 1022 done: 1023 - /* it's faster to check here then delegate to kfree */ 1023 + /* it's faster to check here than delegate to kfree */ 1024 1024 return ret; 1025 1025 } 1026 1026