diff mbox series

[for-next] io_uring: fix documentation

Message ID 20220623082154.2438260-1-dylany@fb.com (mailing list archive)
State New
Headers show
Series [for-next] io_uring: fix documentation | expand

Commit Message

Dylan Yudaken June 23, 2022, 8:21 a.m. UTC
The doc strings were incorrect, fix these up

Reported-by: kernel test robot <lkp@intel.com>
Fixes: c0808632a83a ("io_uring: introduce llist helpers")
Signed-off-by: Dylan Yudaken <dylany@fb.com>
---

Hi,

You may want to just fold this into the original commit.

Dylan

 io_uring/io_uring.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)


base-commit: 5ec69c3a15ae6e904d76545d9a9c686eb758def0

Comments

Jens Axboe June 23, 2022, 1:59 p.m. UTC | #1
On 6/23/22 2:21 AM, Dylan Yudaken wrote:
> The doc strings were incorrect, fix these up
> 
> Reported-by: kernel test robot <lkp@intel.com>
> Fixes: c0808632a83a ("io_uring: introduce llist helpers")
> Signed-off-by: Dylan Yudaken <dylany@fb.com>
> ---
> 
> Hi,
> 
> You may want to just fold this into the original commit.

Yeah, I'm going to fold that in with the -rc4 rebase.
diff mbox series

Patch

diff --git a/io_uring/io_uring.c b/io_uring/io_uring.c
index cbbec1cecad3..894652eae449 100644
--- a/io_uring/io_uring.c
+++ b/io_uring/io_uring.c
@@ -1023,13 +1023,13 @@  static unsigned int handle_tw_list(struct llist_node *node,
  * The order of entries returned is from the newest to the oldest added one.
  */
 static inline struct llist_node *io_llist_xchg(struct llist_head *head,
-					       struct llist_node *node)
+					       struct llist_node *new)
 {
-	return xchg(&head->first, node);
+	return xchg(&head->first, new);
 }
 
 /**
- * io_llist_xchg - possibly swap all entries in a lock-less list
+ * io_llist_cmpxchg - possibly swap all entries in a lock-less list
  * @head:	the head of lock-less list to delete all entries
  * @old:	expected old value of the first entry of the list
  * @new:	new entry as the head of the list