Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 336070
b: refs/heads/master
c: 4b05a1c
h: refs/heads/master
v: v3
  • Loading branch information
Mikulas Patocka authored and Linus Torvalds committed Nov 28, 2012
1 parent b0bb615 commit 144e0b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e23739b4ade80a3a7f87198f008f6c44a7cbc9fd
refs/heads/master: 4b05a1c74d1cfae37cf6ff293ee928350f031418
4 changes: 2 additions & 2 deletions trunk/include/linux/percpu-rwsem.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ struct percpu_rw_semaphore {
};

#define light_mb() barrier()
#define heavy_mb() synchronize_sched()
#define heavy_mb() synchronize_sched_expedited()

static inline void percpu_down_read(struct percpu_rw_semaphore *p)
{
Expand Down Expand Up @@ -51,7 +51,7 @@ static inline void percpu_down_write(struct percpu_rw_semaphore *p)
{
mutex_lock(&p->mtx);
p->locked = true;
synchronize_sched(); /* make sure that all readers exit the rcu_read_lock_sched region */
synchronize_sched_expedited(); /* make sure that all readers exit the rcu_read_lock_sched region */
while (__percpu_count(p->counters))
msleep(1);
heavy_mb(); /* C, between read of p->counter and write to data, paired with B */
Expand Down

0 comments on commit 144e0b7

Please sign in to comment.