Re: [PATCH v2] net: ipv6: fib: don't sleep inside atomic lock

2014-08-22 Thread David Miller
From: Benjamin Block Date: Thu, 21 Aug 2014 19:37:48 +0200 > The function fib6_commit_metrics() allocates a piece of memory in mode > GFP_KERNEL while holding an atomic lock from higher up in the stack, in > the function __ip6_ins_rt(). This produces the following BUG: ... > Fixing this by repla

Re: [PATCH v2] net: ipv6: fib: don't sleep inside atomic lock

2014-08-21 Thread Hannes Frederic Sowa
On Do, 2014-08-21 at 19:37 +0200, Benjamin Block wrote: > The function fib6_commit_metrics() allocates a piece of memory in mode > GFP_KERNEL while holding an atomic lock from higher up in the stack, in > the function __ip6_ins_rt(). This produces the following BUG: > > > BUG: sleeping function ca

Re: [PATCH v2] net: ipv6: fib: don't sleep inside atomic lock

2014-08-21 Thread David Rientjes
On Thu, 21 Aug 2014, Benjamin Block wrote: > The function fib6_commit_metrics() allocates a piece of memory in mode > GFP_KERNEL while holding an atomic lock from higher up in the stack, in > the function __ip6_ins_rt(). This produces the following BUG: > > > BUG: sleeping function called from in

[PATCH v2] net: ipv6: fib: don't sleep inside atomic lock

2014-08-21 Thread Benjamin Block
The function fib6_commit_metrics() allocates a piece of memory in mode GFP_KERNEL while holding an atomic lock from higher up in the stack, in the function __ip6_ins_rt(). This produces the following BUG: > BUG: sleeping function called from invalid context at mm/slub.c:1250 > in_atomic(): 1, irqs