Re: Subject: [PATCH] net/ipv6: Use GFP_ATOMIC when a lock is held
From: Eric Dumazet <hidden>
Date: 2010-05-30 21:18:28
Also in:
kernel-janitors, lkml
From: Eric Dumazet <hidden>
Date: 2010-05-30 21:18:28
Also in:
kernel-janitors, lkml
Le dimanche 30 mai 2010 à 23:09 +0200, Julia Lawall a écrit :
could exit with success without the kzalloc ever being called. If the kzalloc is moved up, it could fail and then it returns immediately without executing the loop. A solution could be to leave the NULL test on p where it is, and only move up the kzalloc. Or perhaps the change in behavior doesn't matter?
If a GFP_KERNEL allocation fails, we are in a big trouble anyway :) GFP_ATOMIC are more problematic in this area :)