Skip to contentSkip to conversation

async: use list_move_tail

PATCH In review Stefan Richter 2 participants 2 messages Feb 2, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 async: use list_move_tail

---
 kernel/async.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
kernel/async.c +1 -2
index dd14fc5..c3baaa8 100644
@@ -133,8 +133,7 @@ static void run_one_entry(void)
 	entry = list_first_entry(&async_pending, struct async_entry, list);
 
 	/* 2) move it to the running queue */
-	list_del(&entry->list);
-	list_add_tail(&entry->list, entry->running);
+	list_move_tail(&entry->list, entry->running);
 	spin_unlock_irqrestore(&async_lock, flags);
 
 	/* 3) run it (and print duration)*/
Signature · 7 lines
1.6.0.6


-- 
Stefan Richter
-=====-==--= --=- ---=-
http://arcgraph.de/sr/