[PATCH] generic ipi function calls: wait on alloc failure fallback

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jeremy Fitzhardinge
Date: Tuesday, July 15, 2008 - 1:22 pm

When a GFP_ATOMIC allocation fails, it falls back to allocating the
data on the stack and converting it to a waiting call.

Make sure we actually wait in this case.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
---
 kernel/smp.c |    1 +
 1 file changed, 1 insertion(+)

===================================================================
--- a/kernel/smp.c
+++ b/kernel/smp.c
@@ -312,6 +312,7 @@ int smp_call_function_mask(cpumask_t mas
 	if (!data) {
 		data = &d;
 		data->csd.flags = CSD_FLAG_WAIT;
+		wait = 1;
 	}
 
 	spin_lock_init(&data->lock);



--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] generic ipi function calls: wait on alloc failure ..., Jeremy Fitzhardinge, (Tue Jul 15, 1:22 pm)
Re: [PATCH] generic ipi function calls: wait on alloc fail ..., Jeremy Fitzhardinge, (Tue Jul 15, 3:01 pm)
Re: [PATCH] generic ipi function calls: wait on alloc fail ..., Jeremy Fitzhardinge, (Fri Jul 18, 3:42 pm)