From: Andrew Morton Date: Thu, 13 Jan 2011 23:47:25 +0000 (-0800) Subject: mm/dmapool.c: use TASK_UNINTERRUPTIBLE in dma_pool_alloc() X-Git-Tag: v2.6.38-rc1~93 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=684265d4a30f133162f06ddb2e5010608e60e4bb;p=platform%2Fkernel%2Flinux-3.10.git 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/dmapool.c b/mm/dmapool.c index a2f6295..03bf3bb 100644 --- a/mm/dmapool.c +++ b/mm/dmapool.c @@ -324,7 +324,7 @@ void *dma_pool_alloc(struct dma_pool *pool, gfp_t mem_flags, if (mem_flags & __GFP_WAIT) { DECLARE_WAITQUEUE(wait, current); - __set_current_state(TASK_INTERRUPTIBLE); + __set_current_state(TASK_UNINTERRUPTIBLE); __add_wait_queue(&pool->waitq, &wait); spin_unlock_irqrestore(&pool->lock, flags);