Message ID | 20220206143348.350693-1-eric.dumazet@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 94fdd7c02a56d0316d20e417a1141b71a8dcee82 |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | [net] net/smc: use GFP_ATOMIC allocation in smc_pnet_add_eth() | expand |
Hello: This patch was applied to netdev/net.git (master) by David S. Miller <davem@davemloft.net>: On Sun, 6 Feb 2022 06:33:48 -0800 you wrote: > From: Eric Dumazet <edumazet@google.com> > > 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: > > [...] Here is the summary with links: - [net] net/smc: use GFP_ATOMIC allocation in smc_pnet_add_eth() https://git.kernel.org/netdev/net/c/94fdd7c02a56 You are awesome, thank you!
diff --git a/net/smc/smc_pnet.c b/net/smc/smc_pnet.c index fb6331d97185a5db9b4539e7f081e9fa469bc44b..0599246c037690b4b01813956e4af74519277bea 100644 --- a/net/smc/smc_pnet.c +++ b/net/smc/smc_pnet.c @@ -382,7 +382,7 @@ static int smc_pnet_add_eth(struct smc_pnettable *pnettable, struct net *net, if (ndev) { new_pe->ndev = ndev; netdev_tracker_alloc(ndev, &new_pe->dev_tracker, - GFP_KERNEL); + GFP_ATOMIC); } list_add_tail(&new_pe->list, &pnettable->pnetlist); write_unlock(&pnettable->lock);