[RFC PATCH 3/3] Btrfs: convert rwlock to RCU for extent_map

2012-01-05 Thread Liu Bo
In this patch, we make three things: a) skiplist - rcu-skiplist This is quite direct, since in skiplist each level is a list, any modification to the skiplist refers to pointers change, which fits RCU's sematic. b) use rcu lock to protect extent_map instead of rwlock. c) make

[RFC PATCH 3/3] Btrfs: convert rwlock to RCU for extent_map

2012-01-05 Thread Liu Bo
In this patch, we make three things: a) skiplist - rcu-skiplist This is quite direct, since in skiplist each level is a list, any modification to the skiplist refers to pointers change, which fits RCU's sematic. b) use rcu lock to protect extent_map instead of rwlock. c) make