make dmapool code use __set_current_state()
Signed-off-by: Arjan van de Ven <arjan@Linux.intel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
committed by
Linus Torvalds
parent
8e8934695d
commit
d9aacccf45
@@ -302,7 +302,7 @@ restart:
|
|||||||
if (mem_flags & __GFP_WAIT) {
|
if (mem_flags & __GFP_WAIT) {
|
||||||
DECLARE_WAITQUEUE (wait, current);
|
DECLARE_WAITQUEUE (wait, current);
|
||||||
|
|
||||||
current->state = TASK_INTERRUPTIBLE;
|
__set_current_state(TASK_INTERRUPTIBLE);
|
||||||
add_wait_queue (&pool->waitq, &wait);
|
add_wait_queue (&pool->waitq, &wait);
|
||||||
spin_unlock_irqrestore (&pool->lock, flags);
|
spin_unlock_irqrestore (&pool->lock, flags);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user