]> git.proxmox.com Git - mirror_spl-debian.git/blobdiff - include/sys/rwlock.h
New upstream version 0.7.11
[mirror_spl-debian.git] / include / sys / rwlock.h
index 325dfc499c98c75a728fb8767c1b3818c9441a49..2699229684addd6ba8e5321350a178f744a62ce1 100644 (file)
@@ -135,7 +135,7 @@ RW_LOCK_HELD(krwlock_t *rwp)
 }
 
 /*
- * The following functions must be a #define   and not static inline.
+ * The following functions must be a #define and not static inline.
  * This ensures that the native linux semaphore functions (down/up)
  * will be correctly located in the users code which is important
  * for the built in kernel lock analysis tools
@@ -151,10 +151,10 @@ RW_LOCK_HELD(krwlock_t *rwp)
        spl_rw_set_type(rwp, type);                                     \
 })
 
-#define        rw_destroy(rwp)                                                 \
-({                                                                     \
-       VERIFY(!RW_LOCK_HELD(rwp));                                     \
-})
+/*
+ * The Linux rwsem implementation does not require a matching destroy.
+ */
+#define        rw_destroy(rwp)         ((void) 0)
 
 #define        rw_tryenter(rwp, rw)                                            \
 ({                                                                     \