]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
futex: additional (get|put)_futex_key() fixes
authorDarren Hart <dvhltc@us.ibm.com>
Thu, 12 Mar 2009 07:55:46 +0000 (00:55 -0700)
committerIngo Molnar <mingo@elte.hu>
Thu, 12 Mar 2009 10:20:56 +0000 (11:20 +0100)
commitde87fcc124a5d4a171aa32707b3265608ebda6e7
tree5ba695dc0b13c7613c8e9306f9703c1b61ef41fc
parentb2d0994b1301fc3a6a89e1889578dac9227840e3
futex: additional (get|put)_futex_key() fixes

Impact: fix races

futex_requeue and futex_lock_pi still had some bad
(get|put)_futex_key() usage. This patch adds the missing
put_futex_keys() and corrects a goto in futex_lock_pi() to avoid
a double get.

Build and boot tested on a 4 way Intel x86_64 workstation.
Passes basic pthread_mutex and PI tests out of
ltp/testcases/realtime.

Signed-off-by: Darren Hart <dvhltc@us.ibm.com>
Acked-by: Peter Zijlstra <peterz@infradead.org>
Cc: Rusty Russell <rusty@rustcorp.com.au>
LKML-Reference: <20090312075545.9856.75152.stgit@Aeon>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/futex.c