mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-21 01:03:42 +00:00
backout rev 1.74
Requested by: ssouhlal
This commit is contained in:
parent
7935d5382b
commit
587070382a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=157576
|
@ -118,7 +118,6 @@ struct filedesc_to_leader {
|
|||
mtx_unlock(&(fd)->fd_mtx); \
|
||||
} while (0)
|
||||
|
||||
#ifdef SMP
|
||||
#define FILEDESC_LOCK_FAST(fd) \
|
||||
do { \
|
||||
mtx_lock(&(fd)->fd_mtx); \
|
||||
|
@ -138,10 +137,7 @@ struct filedesc_to_leader {
|
|||
wakeup(&(fd)->fd_locked); \
|
||||
mtx_unlock(&(fd)->fd_mtx); \
|
||||
} while (0)
|
||||
#else
|
||||
#define FILEDESC_LOCK_FAST(fdp) critical_enter()
|
||||
#define FILEDESC_UNLOCK_FAST(fdp) critical_exit()
|
||||
#endif /* SMP */
|
||||
|
||||
#ifdef INVARIANT_SUPPORT
|
||||
#define FILEDESC_LOCK_ASSERT(fd, arg) \
|
||||
do { \
|
||||
|
|
Loading…
Reference in a new issue