aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kernel/futex.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/futex.c b/kernel/futex.c
index 45e448a5e440..92a31d4cd564 100644
--- a/kernel/futex.c
+++ b/kernel/futex.c
@@ -1360,6 +1360,7 @@ out:
1360 1360
1361/* The key must be already stored in q->key. */ 1361/* The key must be already stored in q->key. */
1362static inline struct futex_hash_bucket *queue_lock(struct futex_q *q) 1362static inline struct futex_hash_bucket *queue_lock(struct futex_q *q)
1363 __acquires(&hb->lock)
1363{ 1364{
1364 struct futex_hash_bucket *hb; 1365 struct futex_hash_bucket *hb;
1365 1366
@@ -1373,6 +1374,7 @@ static inline struct futex_hash_bucket *queue_lock(struct futex_q *q)
1373 1374
1374static inline void 1375static inline void
1375queue_unlock(struct futex_q *q, struct futex_hash_bucket *hb) 1376queue_unlock(struct futex_q *q, struct futex_hash_bucket *hb)
1377 __releases(&hb->lock)
1376{ 1378{
1377 spin_unlock(&hb->lock); 1379 spin_unlock(&hb->lock);
1378 drop_futex_key_refs(&q->key); 1380 drop_futex_key_refs(&q->key);
@@ -1391,6 +1393,7 @@ queue_unlock(struct futex_q *q, struct futex_hash_bucket *hb)
1391 * an example). 1393 * an example).
1392 */ 1394 */
1393static inline void queue_me(struct futex_q *q, struct futex_hash_bucket *hb) 1395static inline void queue_me(struct futex_q *q, struct futex_hash_bucket *hb)
1396 __releases(&hb->lock)
1394{ 1397{
1395 int prio; 1398 int prio;
1396 1399
@@ -1471,6 +1474,7 @@ retry:
1471 * and dropped here. 1474 * and dropped here.
1472 */ 1475 */
1473static void unqueue_me_pi(struct futex_q *q) 1476static void unqueue_me_pi(struct futex_q *q)
1477 __releases(q->lock_ptr)
1474{ 1478{
1475 WARN_ON(plist_node_empty(&q->list)); 1479 WARN_ON(plist_node_empty(&q->list));
1476 plist_del(&q->list, &q->list.plist); 1480 plist_del(&q->list, &q->list.plist);