projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
84bc227
)
mm/dmapool.c: use TASK_UNINTERRUPTIBLE in dma_pool_alloc()
author
Andrew Morton
<
[email protected]
>
Thu, 13 Jan 2011 23:47:25 +0000
(15:47 -0800)
committer
Linus Torvalds
<
[email protected]
>
Fri, 14 Jan 2011 01:32:48 +0000
(17:32 -0800)
As it stands this code will degenerate into a busy-wait if the calling task
has signal_pending().
Cc: Rolf Eike Beer <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
mm/dmapool.c
patch
|
blob
|
history
diff --git
a/mm/dmapool.c
b/mm/dmapool.c
index a2f6295b4df4ef4ab4fa5078be775ff81bc83c6f..03bf3bb4519a997b8a74c59732cc0feba66af80b 100644
(file)
--- 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_
UN
INTERRUPTIBLE);
__add_wait_queue(&pool->waitq, &wait);
spin_unlock_irqrestore(&pool->lock, flags);