diff options
Diffstat (limited to 'include/linux/percpu-rwsem.h')
-rw-r--r-- | include/linux/percpu-rwsem.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/percpu-rwsem.h b/include/linux/percpu-rwsem.h index 834c4e52cb2d..c2fa3ecb0dce 100644 --- a/include/linux/percpu-rwsem.h +++ b/include/linux/percpu-rwsem.h | |||
@@ -5,11 +5,12 @@ | |||
5 | #include <linux/rwsem.h> | 5 | #include <linux/rwsem.h> |
6 | #include <linux/percpu.h> | 6 | #include <linux/percpu.h> |
7 | #include <linux/wait.h> | 7 | #include <linux/wait.h> |
8 | #include <linux/rcu_sync.h> | ||
8 | #include <linux/lockdep.h> | 9 | #include <linux/lockdep.h> |
9 | 10 | ||
10 | struct percpu_rw_semaphore { | 11 | struct percpu_rw_semaphore { |
12 | struct rcu_sync rss; | ||
11 | unsigned int __percpu *fast_read_ctr; | 13 | unsigned int __percpu *fast_read_ctr; |
12 | atomic_t write_ctr; | ||
13 | struct rw_semaphore rw_sem; | 14 | struct rw_semaphore rw_sem; |
14 | atomic_t slow_read_ctr; | 15 | atomic_t slow_read_ctr; |
15 | wait_queue_head_t write_waitq; | 16 | wait_queue_head_t write_waitq; |