From: Oleg Nesterov Date: Sun, 26 Aug 2012 19:12:09 +0000 (+0200) Subject: task_work: Make task_work_add() lockless X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~100^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ac3d0da8f3290b3d394cdb7f50604424a7cd6092;p=pandora-kernel.git 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 Signed-off-by: Oleg Nesterov Signed-off-by: Peter Zijlstra Cc: Al Viro Cc: Linus Torvalds Cc: Andrew Morton Cc: Thomas Gleixner Link: http://lkml.kernel.org/r/20120826191209.GA4221@redhat.com Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed