Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 15321
b: refs/heads/master
c: 8e31108
h: refs/heads/master
i:
  15319: 79a471b
v: v3
  • Loading branch information
Andrew Morton authored and Linus Torvalds committed Dec 24, 2005
1 parent 01c9947 commit b52b945
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6003a93e7bf6c02f33c02976ff364785d4273295
refs/heads/master: 8e31108b9f41069d55cb9b019ac8262c55fd2616
6 changes: 6 additions & 0 deletions trunk/kernel/futex.c
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,13 @@ static void wake_futex(struct futex_q *q)
/*
* The waiting task can free the futex_q as soon as this is written,
* without taking any locks. This must come last.
*
* A memory barrier is required here to prevent the following store
* to lock_ptr from getting ahead of the wakeup. Clearing the lock
* at the end of wake_up_all() does not prevent this store from
* moving.
*/
wmb();
q->lock_ptr = NULL;
}

Expand Down

0 comments on commit b52b945

Please sign in to comment.