]> Git Repo - linux.git/commit
task_work: Make task_work_add() lockless
authorOleg Nesterov <[email protected]>
Sun, 26 Aug 2012 19:12:09 +0000 (21:12 +0200)
committerIngo Molnar <[email protected]>
Thu, 13 Sep 2012 14:47:33 +0000 (16:47 +0200)
commitac3d0da8f3290b3d394cdb7f50604424a7cd6092
treec1a126ac8ab3d87f22baaa51fd786f3c56c22327
parent15674868d6c5985466835c56dd89d39235f16302
task_work: Make task_work_add() lockless

Change task_work's to use llist-like code to avoid pi_lock
in task_work_add(), this makes it useable under rq->lock.

task_work_cancel() and task_work_run() still use pi_lock
to synchronize with each other.

(This is in preparation for a deadlock fix.)

Suggested-by: Peter Zijlstra <[email protected]>
Signed-off-by: Oleg Nesterov <[email protected]>
Signed-off-by: Peter Zijlstra <[email protected]>
Cc: Al Viro <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
kernel/task_work.c
This page took 0.0560659999999999 seconds and 4 git commands to generate.