mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-17 13:53:39 +00:00
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:
parent
9446debe6b
commit
43e695497c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=252061
|
@ -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 */
|
||||
|
||||
|
|
Loading…
Reference in a new issue