mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-27 11:29:36 +03:00
Always use the generic mutex_destroy().
This commit is contained in:
parent
05b48408fb
commit
1273cf284b
@ -59,17 +59,21 @@ mutex_owner(kmutex_t *mp)
|
|||||||
__mutex_init((mp), #mp, &__key); \
|
__mutex_init((mp), #mp, &__key); \
|
||||||
})
|
})
|
||||||
|
|
||||||
|
#undef mutex_destroy
|
||||||
|
#define mutex_destroy(mp) \
|
||||||
|
({ \
|
||||||
|
VERIFY(!MUTEX_HELD(mp)); \
|
||||||
|
})
|
||||||
|
|
||||||
#define mutex_tryenter(mp) mutex_trylock(mp)
|
#define mutex_tryenter(mp) mutex_trylock(mp)
|
||||||
#define mutex_enter(mp) mutex_lock(mp)
|
#define mutex_enter(mp) mutex_lock(mp)
|
||||||
#define mutex_exit(mp) mutex_unlock(mp)
|
#define mutex_exit(mp) mutex_unlock(mp)
|
||||||
|
|
||||||
|
|
||||||
#ifdef HAVE_GPL_ONLY_SYMBOLS
|
#ifdef HAVE_GPL_ONLY_SYMBOLS
|
||||||
# define mutex_enter_nested(mp, sc) mutex_lock_nested(mp, sc)
|
# define mutex_enter_nested(mp, sc) mutex_lock_nested(mp, sc)
|
||||||
#else
|
#else
|
||||||
# define mutex_enter_nested(mp, sc) mutex_enter(mp)
|
# define mutex_enter_nested(mp, sc) mutex_enter(mp)
|
||||||
# ifdef CONFIG_DEBUG_MUTEXES
|
|
||||||
# define mutex_destroy(mp) ((void)0)
|
|
||||||
# endif /* CONFIG_DEBUG_MUTEXES */
|
|
||||||
#endif /* HAVE_GPL_ONLY_SYMBOLS */
|
#endif /* HAVE_GPL_ONLY_SYMBOLS */
|
||||||
|
|
||||||
#else /* HAVE_MUTEX_OWNER */
|
#else /* HAVE_MUTEX_OWNER */
|
||||||
|
Loading…
Reference in New Issue
Block a user