net/mlx4_core: Fix wrong index in propagating port change event to VFs
[linux/fpc-iii.git] / kernel / locking / rwsem.h
blob870ed9a5b4260c3c470924ad61e86ed91cefacaa
1 #ifdef CONFIG_RWSEM_SPIN_ON_OWNER
2 static inline void rwsem_set_owner(struct rw_semaphore *sem)
4 sem->owner = current;
7 static inline void rwsem_clear_owner(struct rw_semaphore *sem)
9 sem->owner = NULL;
12 #else
13 static inline void rwsem_set_owner(struct rw_semaphore *sem)
17 static inline void rwsem_clear_owner(struct rw_semaphore *sem)
20 #endif