commit | 94fdd7c02a56d0316d20e417a1141b71a8dcee82 | [log] [tgz] |
---|---|---|
author | Eric Dumazet <edumazet@google.com> | Sun Feb 06 06:33:48 2022 -0800 |
committer | David S. Miller <davem@davemloft.net> | Mon Feb 07 12:02:49 2022 +0000 |
tree | 24de34dc15ce91d972e07adcd5c4a029f03c54b9 | |
parent | 28f9222138868899c53e00bc1f910faa55f88546 [diff] |
net/smc: use GFP_ATOMIC allocation in smc_pnet_add_eth() My last patch moved the netdev_tracker_alloc() call to a section protected by a write_lock(). I should have replaced GFP_KERNEL with GFP_ATOMIC to avoid the infamous: BUG: sleeping function called from invalid context at include/linux/sched/mm.h:256 Fixes: 28f922213886 ("net/smc: fix ref_tracker issue in smc_pnet_add()") Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>