Whamcloud - gitweb
LU-2456 lnet: Dynamic LNet Configuration (DLC) IOCTL changes
[fs/lustre-release.git] / libcfs / libcfs / hash.c
index dda925c..b637760 100644 (file)
@@ -125,18 +125,21 @@ cfs_hash_nl_unlock(cfs_hash_lock_t *lock, int exclusive) {}
 
 static inline void
 cfs_hash_spin_lock(cfs_hash_lock_t *lock, int exclusive)
+__acquires(&lock->spin)
 {
        spin_lock(&lock->spin);
 }
 
 static inline void
 cfs_hash_spin_unlock(cfs_hash_lock_t *lock, int exclusive)
+__releases(&lock->spin)
 {
        spin_unlock(&lock->spin);
 }
 
 static inline void
 cfs_hash_rw_lock(cfs_hash_lock_t *lock, int exclusive)
+__acquires(&lock->rw)
 {
        if (!exclusive)
                read_lock(&lock->rw);
@@ -146,6 +149,7 @@ cfs_hash_rw_lock(cfs_hash_lock_t *lock, int exclusive)
 
 static inline void
 cfs_hash_rw_unlock(cfs_hash_lock_t *lock, int exclusive)
+__releases(&lock->rw)
 {
        if (!exclusive)
                read_unlock(&lock->rw);