From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julia Lawall Subject: Subject: [PATCH] net/ipv6: Use GFP_ATOMIC when a lock is held Date: Sun, 30 May 2010 21:48:03 +0200 (CEST) Message-ID: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII To: "David S. Miller" , Alexey Kuznetsov , "Pekka Savola (ipv6)" , James Morris , Hideaki YOSHIFUJI Received: from mgw1.diku.dk ([130.225.96.91]:58059 "EHLO mgw1.diku.dk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752803Ab0E3TsK (ORCPT ); Sun, 30 May 2010 15:48:10 -0400 Sender: netdev-owner@vger.kernel.org List-ID: From: Julia Lawall A spin lock is taken near the beginning of the enclosing function. The semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // @@ @@ spin_lock(...) ... when != spin_unlock(...) -GFP_KERNEL +GFP_ATOMIC // Signed-off-by: Julia Lawall --- net/ipv6/sit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -u -p a/net/ipv6/sit.c b/net/ipv6/sit.c --- a/net/ipv6/sit.c +++ b/net/ipv6/sit.c @@ -358,7 +358,7 @@ ipip6_tunnel_add_prl(struct ip_tunnel *t goto out; } - p = kzalloc(sizeof(struct ip_tunnel_prl_entry), GFP_KERNEL); + p = kzalloc(sizeof(struct ip_tunnel_prl_entry), GFP_ATOMIC); if (!p) { err = -ENOBUFS; goto out;