lkml.org 
[lkml]   [2014]   [Jan]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] sparc: replace __GFP_NOFAIL with GFP_ATOMIC in mdesc_kmalloc()
From
From: Ethan Zhao <ethan.kernel@gmail.com>
Date: Tue, 7 Jan 2014 17:31:17 +0800

> Has kmalloc() failure checking there, so it is unnecessary to allocate with
> __GFP_NOFAIL flag that might block forever.
>
> Signed-off-by: Ethan Zhao <ethan.kernel@gmail.com>

This allocation failing borders on catastrophic. The allocation failure
handling is just for looks.

This function is triggered when the firmware tells us that new cpus or
other devices are available. This memory being allocated will hold
the machine description that we traverse to find those new devices.

If this allocation is allowed to fail, we will never have any way to
get the notification again. It really is __GFP_NOFAIL and must
succeed.

I'm not applying this, sorry.


\
 
 \ /
  Last update: 2014-01-07 21:01    [W:0.086 / U:0.080 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site