TODO DONE: Use sx_xholder in SPL rwlock.h
Approved by: mav (mentor) MFC after: 1 week Sponsored by: iXsystems, Inc.
This commit is contained in:
parent
7defd7582e
commit
9f24784038
@ -87,8 +87,7 @@ typedef struct sx krwlock_t;
|
||||
#define rw_write_held(lock) sx_xlocked(lock)
|
||||
#define rw_lock_held(lock) (rw_read_held(lock) || rw_write_held(lock))
|
||||
#define rw_iswriter(lock) sx_xlocked(lock)
|
||||
/* TODO: Change to sx_xholder() once it is moved from kern_sx.c to sx.h. */
|
||||
#define rw_owner(lock) ((lock)->sx_lock & SX_LOCK_SHARED ? NULL : (struct thread *)SX_OWNER((lock)->sx_lock))
|
||||
#define rw_owner(lock) sx_xholder(lock)
|
||||
|
||||
#endif /* defined(_KERNEL) */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user