From: Darren Hart Date: Fri, 3 Apr 2009 20:39:52 +0000 (-0700) Subject: futex: split out atomic logic from futex_lock_pi() X-Git-Tag: v2.6.31-rc1~409^2~16 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1a52084d0919c2799258737c21fb328a9de159b5;p=pandora-kernel.git futex: split out atomic logic from futex_lock_pi() Refactor the atomic portion of futex_lock_pi() into futex_lock_pi_atomic(). This logic will be needed by requeue_pi, so modularize it to reduce code duplication. The only significant change is passing of the task to try and take the lock for. This simplifies the -EDEADLK test as if the lock is owned by task t, it's a deadlock, regardless of if we are doing requeue pi or not. This patch updates the corresponding comment accordingly. Signed-off-by: Darren Hart Reviewed-by: Thomas Gleixner Signed-off-by: Thomas Gleixner --- Reading git-diff-tree failed