From d9aacccf457d07d729cfc7bf20ff0c7428357a9f Mon Sep 17 00:00:00 2001 From: Arjan van de Ven Date: Tue, 16 Oct 2007 23:29:32 -0700 Subject: [PATCH] make dmapool code use __set_current_state() Signed-off-by: Arjan van de Ven Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- drivers/base/dmapool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/base/dmapool.c b/drivers/base/dmapool.c index 7647abfe189..fbae8674e49 100644 --- a/drivers/base/dmapool.c +++ b/drivers/base/dmapool.c @@ -302,7 +302,7 @@ restart: if (mem_flags & __GFP_WAIT) { DECLARE_WAITQUEUE (wait, current); - current->state = TASK_INTERRUPTIBLE; + __set_current_state(TASK_INTERRUPTIBLE); add_wait_queue (&pool->waitq, &wait); spin_unlock_irqrestore (&pool->lock, flags); -- 2.41.1