1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-03 12:35:02 +00:00
freebsd/sys/fs
Robert Watson 2d9cfabad4 Add a new global rwlock, in_ifaddr_lock, which will synchronize use of the
in_ifaddrhead and INADDR_HASH address lists.

Previously, these lists were used unsynchronized as they were effectively
never changed in steady state, but we've seen increasing reports of
writer-writer races on very busy VPN servers as core count has gone up
(and similar configurations where address lists change frequently and
concurrently).

For the time being, use rwlocks rather than rmlocks in order to take
advantage of their better lock debugging support.  As a result, we don't
enable ip_input()'s read-locking of INADDR_HASH until an rmlock conversion
is complete and a performance analysis has been done.  This means that one
class of reader-writer races still exists.

MFC after:      6 weeks
Reviewed by:    bz
2009-06-25 11:52:33 +00:00
..
cd9660 Update the inline version of vn_get_ino() for ".." lookups to match the 2009-06-12 21:19:57 +00:00
coda Remove the thread argument from the FSD (File-System Dependent) parts of 2009-05-11 15:33:26 +00:00
deadfs Add a simple VOP_VPTOCNP implementation for deadfs which returns EBADF. 2008-12-12 00:59:36 +00:00
devfs Improve nested jail awareness of devfs by handling credentials. 2009-06-20 14:50:32 +00:00
fdescfs Report all fdescfs vnodes as VCHR for stat(2). Fake the unique 2009-05-12 09:28:45 +00:00
fifofs s/a_fdidx/a_fp/ for VOP_OPEN comments that inline struct vop_open_args 2009-06-10 14:09:05 +00:00
hpfs Remove the thread argument from the FSD (File-System Dependent) parts of 2009-05-11 15:33:26 +00:00
msdosfs Fix r193923 by noting that type of a_fp is struct file *, not int. 2009-06-10 14:24:31 +00:00
nfs Replace RPCAUTH_UNIXGIDS with NFS_MAXGRPS so that nfscbd.c will build. 2009-06-20 17:11:07 +00:00
nfsclient Add a new global rwlock, in_ifaddr_lock, which will synchronize use of the 2009-06-25 11:52:33 +00:00
nfsserver Rework the credential code to support larger values of NGROUPS and 2009-06-19 17:10:35 +00:00
ntfs In non-debugging mode make this define (void)0 instead of nothing. This 2009-06-21 08:36:30 +00:00
nullfs Add explicit struct ucred * argument for VOP_VPTOCNP, to be used by 2009-06-21 19:21:01 +00:00
nwfs Eliminate the unnecessary clearing of a page's dirty bits from 2009-05-23 18:25:11 +00:00
portalfs Rework the credential code to support larger values of NGROUPS and 2009-06-19 17:10:35 +00:00
procfs Implement global and per-uid accounting of the anonymous memory. Add 2009-06-23 20:45:22 +00:00
pseudofs VOP_IOCTL takes unlocked vnode as an argument. Due to this, v_data may 2009-06-10 13:57:36 +00:00
smbfs Make *getpages()s' assertion on the state of each page's dirty bits 2009-05-28 18:11:09 +00:00
tmpfs Implement global and per-uid accounting of the anonymous memory. Add 2009-06-23 20:45:22 +00:00
udf Use #ifdef APPLE_MAC instead of #ifdef MAC to conditionalize Apple-specific 2009-06-06 07:13:57 +00:00
unionfs Rework the credential code to support larger values of NGROUPS and 2009-06-19 17:10:35 +00:00