Skip to contentSkip to conversation

io_uring: fix documentation

PATCH In review Dylan Yudaken 2 participants 2 messages Jun 23, 2022 io_uring

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 io_uring: fix documentation

The doc strings were incorrect, fix these up

Fixes c0808632a83a ("io_uring: introduce llist helpers")

---

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(-)
io_uring/io_uring.c +3 -3
index cbbec1cecad3..894652eae449 100644
@@ -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

base-commit: 5ec69c3a15ae6e904d76545d9a9c686eb758def0

Signature · 1 line
2.30.2