Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 15320
b: refs/heads/master
c: 6003a93
h: refs/heads/master
v: v3
  • Loading branch information
Manfred Spraul authored and Linus Torvalds committed Dec 24, 2005
1 parent 79a471b commit 01c9947
Show file tree
Hide file tree
Showing 2 changed files with 3 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: a7c2491a13cc72fc09c062e635b9a77ff6bb4a73
refs/heads/master: 6003a93e7bf6c02f33c02976ff364785d4273295
2 changes: 2 additions & 0 deletions trunk/ipc/sem.c
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,7 @@ static void update_queue (struct sem_array * sma)
/* hands-off: q will disappear immediately after
* writing q->status.
*/
smb_wmb();
q->status = error;
q = n;
} else {
Expand Down Expand Up @@ -461,6 +462,7 @@ static void freeary (struct sem_array *sma, int id)
n = q->next;
q->status = IN_WAKEUP;
wake_up_process(q->sleeper); /* doesn't sleep */
smp_wmb();
q->status = -EIDRM; /* hands-off q */
q = n;
}
Expand Down

0 comments on commit 01c9947

Please sign in to comment.