Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 333259
b: refs/heads/master
c: e6b5c08
h: refs/heads/master
i:
  333257: 3970163
  333255: d610329
v: v3
  • Loading branch information
Mikulas Patocka authored and Jens Axboe committed Sep 26, 2012
1 parent eb5d282 commit ae01aef
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: 3eab7315c8dd6685f58acba00319dd8b80a21d7a
refs/heads/master: e6b5c0822bcf43b91a2cdcb535ea828e953b6590
4 changes: 2 additions & 2 deletions trunk/Documentation/percpu-rw-semaphore.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ cores take the lock for reading, the cache line containing the semaphore
is bouncing between L1 caches of the cores, causing performance
degradation.

Locking for reading it very fast, it uses RCU and it avoids any atomic
Locking for reading is very fast, it uses RCU and it avoids any atomic
instruction in the lock and unlock path. On the other hand, locking for
writing is very expensive, it calls synchronize_rcu() that can take
hundreds of microseconds.
hundreds of milliseconds.

The lock is declared with "struct percpu_rw_semaphore" type.
The lock is initialized percpu_init_rwsem, it returns 0 on success and
Expand Down

0 comments on commit ae01aef

Please sign in to comment.