Commit 684265d4a30f133162f06ddb2e5010608e60e4bb
Committed by
Linus Torvalds
1 parent
84bc227d7f
Exists in
master
and in
7 other branches
mm/dmapool.c: use TASK_UNINTERRUPTIBLE in dma_pool_alloc()
As it stands this code will degenerate into a busy-wait if the calling task has signal_pending(). Cc: Rolf Eike Beer <eike-kernel@sf-tec.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
mm/dmapool.c
... | ... | @@ -324,7 +324,7 @@ |
324 | 324 | if (mem_flags & __GFP_WAIT) { |
325 | 325 | DECLARE_WAITQUEUE(wait, current); |
326 | 326 | |
327 | - __set_current_state(TASK_INTERRUPTIBLE); | |
327 | + __set_current_state(TASK_UNINTERRUPTIBLE); | |
328 | 328 | __add_wait_queue(&pool->waitq, &wait); |
329 | 329 | spin_unlock_irqrestore(&pool->lock, flags); |
330 | 330 |