aboutsummaryrefslogtreecommitdiffstats
path: root/net/lapb/lapb_iface.c
diff options
context:
space:
mode:
authorEric Dumazet <[email protected]>2021-03-19 17:39:33 +0000
committerDavid S. Miller <[email protected]>2021-03-19 20:38:46 +0000
commit919067cc845f323a80b6fe987b64238bd82d309e (patch)
treef8f639053de5df86f213fffa61268e75df05c07d /net/lapb/lapb_iface.c
parentMerge branch 'ipa-update-config-data' (diff)
downloadkernel-919067cc845f323a80b6fe987b64238bd82d309e.tar.gz
kernel-919067cc845f323a80b6fe987b64238bd82d309e.zip
net: add CONFIG_PCPU_DEV_REFCNT
I was working on a syzbot issue, claiming one device could not be dismantled because its refcount was -1 unregister_netdevice: waiting for sit0 to become free. Usage count = -1 It would be nice if syzbot could trigger a warning at the time this reference count became negative. This patch adds CONFIG_PCPU_DEV_REFCNT options which defaults to per cpu variables (as before this patch) on SMP builds. v2: free_dev label in alloc_netdev_mqs() is moved to avoid a compiler warning (-Wunused-label), as reported by kernel test robot <[email protected]> Signed-off-by: Eric Dumazet <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions