mm: add /proc controls for pdflush threads
[safe/jmp/linux-2.6] / kernel / futex.c
index 2331b73..6b50a02 100644 (file)
@@ -659,7 +659,8 @@ static inline void
 double_unlock_hb(struct futex_hash_bucket *hb1, struct futex_hash_bucket *hb2)
 {
        spin_unlock(&hb1->lock);
-       spin_unlock(&hb2->lock);
+       if (hb1 != hb2)
+               spin_unlock(&hb2->lock);
 }
 
 /*