summaryrefslogtreecommitdiff
path: root/sound/soc/soc-utils.c
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2015-01-16 04:04:22 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-02-27 04:48:47 +0300
commit06b5ff9f351205b2900c9629addf74a4c875b12c (patch)
tree63703c7c2bc589e7e205b108fdd830814b6499f6 /sound/soc/soc-utils.c
parent1d480edb0cee748ef61b4b8f7b21ab2d1c3ff0a2 (diff)
downloadlinux-06b5ff9f351205b2900c9629addf74a4c875b12c.tar.xz
net: rps: fix cpu unplug
[ Upstream commit ac64da0b83d82abe62f78b3d0e21cca31aea24fa ] softnet_data.input_pkt_queue is protected by a spinlock that we must hold when transferring packets from victim queue to an active one. This is because other cpus could still be trying to enqueue packets into victim queue. A second problem is that when we transfert the NAPI poll_list from victim to current cpu, we absolutely need to special case the percpu backlog, because we do not want to add complex locking to protect process_queue : Only owner cpu is allowed to manipulate it, unless cpu is offline. Based on initial patch from Prasad Sodagudi & Subash Abhinov Kasiviswanathan. This version is better because we do not slow down packet processing, only make migration safer. Reported-by: Prasad Sodagudi <psodagud@codeaurora.org> Reported-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org> Signed-off-by: Eric Dumazet <edumazet@google.com> Cc: Tom Herbert <therbert@google.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'sound/soc/soc-utils.c')
0 files changed, 0 insertions, 0 deletions