Skip to content

Commit

Permalink
generic ipi function calls: wait on alloc failure fallback
Browse files Browse the repository at this point in the history
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Jeremy Fitzhardinge authored and Linus Torvalds committed Jul 15, 2008
1 parent 59190f4 commit 63cf13b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kernel/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,7 @@ int smp_call_function_mask(cpumask_t mask, void (*func)(void *), void *info,
if (!data) {
data = &d;
data->csd.flags = CSD_FLAG_WAIT;
wait = 1;
}

spin_lock_init(&data->lock);
Expand Down

0 comments on commit 63cf13b

Please sign in to comment.