History

futex: Rename __unqueue_futex()

In order to prepare introducing these symbols into the global namespace; rename: s/__unqueue_futex/__futex_unqueue/g

Peter Zijlstra committed 5 years ago

Commit af92dce1 parent e7ba9c81 file · +7 −7Browse files

Showing the changes to kernel (1 of 1 file). Show all

Unified · Split

kernel/futex/core.c+7−7
@@ -1470,12 +1470,12 @@ static int futex_lock_pi_atomic(u32 __user *uaddr, struct futex_hash_bucket *hb, · 1469 unmodified lines
14701470 }
14711471
14721472 /**
1473− * __unqueue_futex() - Remove the futex_q from its futex_hash_bucket
1473+ * __futex_unqueue() - Remove the futex_q from its futex_hash_bucket
14741474 * @q: The futex_q to unqueue
14751475 *
14761476 * The q->lock_ptr must not be NULL and must be held by the caller.
14771477 */
1478−static void __unqueue_futex(struct futex_q *q)
1478+static void __futex_unqueue(struct futex_q *q)
14791479 {
14801480 struct futex_hash_bucket *hb;
14811481
@@ -1502,13 +1502,13 @@ static void mark_wake_futex(struct wake_q_head *wake_q, struct futex_q *q) · 20 unmodified lines
15021502 return;
15031503
15041504 get_task_struct(p);
1505− __unqueue_futex(q);
1505+ __futex_unqueue(q);
15061506 /*
15071507 * The waiting task can free the futex_q as soon as q->lock_ptr = NULL
15081508 * is written, without taking any locks. This is possible in the event
15091509 * of a spurious wakeup, for example. A memory barrier is required here
15101510 * to prevent the following store to lock_ptr from getting ahead of the
1511− * plist_del in __unqueue_futex().
1511+ * plist_del in __futex_unqueue().
15121512 */
15131513 smp_store_release(&q->lock_ptr, NULL);
15141514
@@ -1958,7 +1958,7 @@ void requeue_pi_wake_futex(struct futex_q *q, union futex_key *key, · 443 unmodified lines
19581958 {
19591959 q->key = *key;
19601960
1961− __unqueue_futex(q);
1961+ __futex_unqueue(q);
19621962
19631963 WARN_ON(!q->rt_waiter);
19641964 q->rt_waiter = NULL;
@@ -2522,7 +2522,7 @@ retry: · 557 unmodified lines
25222522 spin_unlock(lock_ptr);
25232523 goto retry;
25242524 }
2525− __unqueue_futex(q);
2525+ __futex_unqueue(q);
25262526
25272527 BUG_ON(q->pi_state);
25282528
@@ -2539,7 +2539,7 @@ retry: · 10 unmodified lines
25392539 */
25402540 static void futex_unqueue_pi(struct futex_q *q)
25412541 {
2542− __unqueue_futex(q);
2542+ __futex_unqueue(q);
25432543
25442544 BUG_ON(!q->pi_state);
25452545 put_pi_state(q->pi_state);