On Wed, 4 Dec 2013, Oleg Nesterov wrote: > At least out_of_memory() calls has_intersects_mems_allowed() > without even rcu_read_lock(), this is obviously buggy. > > Add the necessary rcu_read_lock(). This means that we can not > simply return from the loop, we need "bool ret" and "break". > > While at it, swap the names of task_struct's (the argument and > the local). This cleanups the code a little bit and avoids the > unnecessary initialization. > > Signed-off-by: Oleg Nesterov <[email protected]> > Reviewed-and-Tested-by: Sergey Dyasly <[email protected]> > Reviewed-by: Sameer Nanda <[email protected]>
Acked-by: David Rientjes <[email protected]> -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

