Switch ZFS mutex_owner macro to use sx_xholder as its now exported via sx.h

MFC after:	1 week
This commit is contained in:
Steven Hartland 2013-06-21 15:55:03 +00:00
parent 9446debe6b
commit 43e695497c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=252061

View file

@ -71,8 +71,7 @@ typedef struct sx kmutex_t;
#define mutex_tryenter(lock) sx_try_xlock(lock)
#define mutex_exit(lock) sx_xunlock(lock)
#define mutex_owned(lock) sx_xlocked(lock)
/* TODO: Change to sx_xholder() once it is moved from kern_sx.c to sx.h. */
#define mutex_owner(lock) ((lock)->sx_lock & SX_LOCK_SHARED ? NULL : (struct thread *)SX_OWNER((lock)->sx_lock))
#define mutex_owner(lock) sx_xholder(lock)
#endif /* _KERNEL */