futex: Move drop_futex_key_refs out of spinlock'ed region
futex: Move drop_futex_key_refs out of spinlock'ed region

When requeuing tasks from one futex to another, the reference held
by the requeued task to the original futex location needs to be
dropped eventually.

Dropping the reference may ultimately lead to a call to
"iput_final" and subsequently call into filesystem- specific code -
which may be non-atomic.

It is therefore safer to defer this drop operation until after the
futex_hash_bucket spinlock has been dropped.

Originally-From: Helge Bahmann <c5618920f622561f9c0ec5c42219c4c08180149f@chaoticmind.net>
Signed-off-by: Darren Hart <6620bce6bfb8b2ba8b188f43804848d35a9a4d76@us.ibm.com>
Cc: <4fbacc2fa0ffdbb11bf1ad6925b886ebd08dd15f@kernel.org>
Cc: Peter Zijlstra <3fddac958924aef220f202ca567388ddab3f14a8@infradead.org>
Cc: Eric Dumazet <a0baddf32b28d2f9429941ed4af2fe636e210591@gmail.com>
Cc: Dinakar Guniguntala <4e2df5029224b0cc861d4c3a65c813963297b174@in.ibm.com>
Cc: John Stultz <2dbbc9a029f6af74f2c2786ce8fa25d932fcaf8c@linux.vnet.ibm.com>
Cc: Sven-Thorsten Dietrich <f52130f315878e2d19564d4f359779e217e71a73@novell.com>
Cc: John Kacur <dae4bd386fd4c6474c13eecbb94aa6e9e7589534@redhat.com>
LKML-Reference: <701578b3c71d3d0868adf2f5f3ec965e0acc203b@us.ibm.com>
Signed-off-by: Ingo Molnar <9dbbbf0688fedc85ad4da37637f1a64b8c718ee2@elte.hu>

TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs