summaryrefslogtreecommitdiffstats
path: root/kernel/Makefile
diff options
context:
space:
mode:
authorOleg Nesterov <oleg@redhat.com>2017-06-30 22:13:59 +0200
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2017-07-25 19:08:58 +0200
commitf274f1e72d7171c80c8c790040e47a23a74796b6 (patch)
tree1e69960fc748abd6fd3454a9a782851f200ff92f /kernel/Makefile
parentnet/netfilter/nf_conntrack_core: Fix net_conntrack_lock() (diff)
downloadlinux-f274f1e72d7171c80c8c790040e47a23a74796b6.tar.xz
linux-f274f1e72d7171c80c8c790040e47a23a74796b6.zip
task_work: Replace spin_unlock_wait() with lock/unlock pair
There is no agreed-upon definition of spin_unlock_wait()'s semantics, and it appears that all callers could do just as well with a lock/unlock pair. This commit therefore replaces the spin_unlock_wait() call in task_work_run() with a spin_lock_irq() and a spin_unlock_irq() aruond the cmpxchg() dequeue loop. This should be safe from a performance perspective because ->pi_lock is local to the task and because calls to the other side of the race, task_work_cancel(), should be rare. Signed-off-by: Oleg Nesterov <oleg@redhat.com> Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions