diff options
Diffstat (limited to 'kernel/rwsem.c')
-rw-r--r-- | kernel/rwsem.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/rwsem.c b/kernel/rwsem.c index 9a87886b022e..1ec620c03064 100644 --- a/kernel/rwsem.c +++ b/kernel/rwsem.c | |||
@@ -20,7 +20,7 @@ void down_read(struct rw_semaphore *sem) | |||
20 | might_sleep(); | 20 | might_sleep(); |
21 | rwsem_acquire_read(&sem->dep_map, 0, 0, _RET_IP_); | 21 | rwsem_acquire_read(&sem->dep_map, 0, 0, _RET_IP_); |
22 | 22 | ||
23 | __down_read(sem); | 23 | LOCK_CONTENDED(sem, __down_read_trylock, __down_read); |
24 | } | 24 | } |
25 | 25 | ||
26 | EXPORT_SYMBOL(down_read); | 26 | EXPORT_SYMBOL(down_read); |
@@ -47,7 +47,7 @@ void down_write(struct rw_semaphore *sem) | |||
47 | might_sleep(); | 47 | might_sleep(); |
48 | rwsem_acquire(&sem->dep_map, 0, 0, _RET_IP_); | 48 | rwsem_acquire(&sem->dep_map, 0, 0, _RET_IP_); |
49 | 49 | ||
50 | __down_write(sem); | 50 | LOCK_CONTENDED(sem, __down_write_trylock, __down_write); |
51 | } | 51 | } |
52 | 52 | ||
53 | EXPORT_SYMBOL(down_write); | 53 | EXPORT_SYMBOL(down_write); |
@@ -111,7 +111,7 @@ void down_read_nested(struct rw_semaphore *sem, int subclass) | |||
111 | might_sleep(); | 111 | might_sleep(); |
112 | rwsem_acquire_read(&sem->dep_map, subclass, 0, _RET_IP_); | 112 | rwsem_acquire_read(&sem->dep_map, subclass, 0, _RET_IP_); |
113 | 113 | ||
114 | __down_read(sem); | 114 | LOCK_CONTENDED(sem, __down_read_trylock, __down_read); |
115 | } | 115 | } |
116 | 116 | ||
117 | EXPORT_SYMBOL(down_read_nested); | 117 | EXPORT_SYMBOL(down_read_nested); |
@@ -130,7 +130,7 @@ void down_write_nested(struct rw_semaphore *sem, int subclass) | |||
130 | might_sleep(); | 130 | might_sleep(); |
131 | rwsem_acquire(&sem->dep_map, subclass, 0, _RET_IP_); | 131 | rwsem_acquire(&sem->dep_map, subclass, 0, _RET_IP_); |
132 | 132 | ||
133 | __down_write_nested(sem, subclass); | 133 | LOCK_CONTENDED(sem, __down_write_trylock, __down_write); |
134 | } | 134 | } |
135 | 135 | ||
136 | EXPORT_SYMBOL(down_write_nested); | 136 | EXPORT_SYMBOL(down_write_nested); |