From: Arjan van de Ven Date: Wed, 17 Oct 2007 06:29:32 +0000 (-0700) Subject: make dmapool code use __set_current_state() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d9aacccf457d07d729cfc7bf20ff0c7428357a9f;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git make dmapool code use __set_current_state() Signed-off-by: Arjan van de Ven Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/base/dmapool.c b/drivers/base/dmapool.c index 7647abfe1890..fbae8674e491 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);