public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] async: use list_move_tail
@ 2009-02-02 12:24 Stefan Richter
  2009-02-02 14:54 ` Arjan van de Ven
  0 siblings, 1 reply; 2+ messages in thread
From: Stefan Richter @ 2009-02-02 12:24 UTC (permalink / raw)
  To: Arjan van de Ven; +Cc: linux-kernel

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
---
 kernel/async.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/kernel/async.c b/kernel/async.c
index dd14fc5..c3baaa8 100644
--- a/kernel/async.c
+++ b/kernel/async.c
@@ -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)*/
-- 
1.6.0.6


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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-02-02 14:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-02 12:24 [PATCH] async: use list_move_tail Stefan Richter
2009-02-02 14:54 ` Arjan van de Ven

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox