freebsd-nq/sys/fs
Ed Schouten f3b86a5fd7 Mark most often used sysctl's as MPSAFE.
After running a `make buildkernel', I noticed most of the Giant locks in
sysctl are only caused by a very small amount of sysctl's:

- sysctl.name2oid. This one is locked by SYSCTL_LOCK, just like
  sysctl.oidfmt.

- kern.ident, kern.osrelease, kern.version, etc. These are just constant
  strings.

- kern.arandom, used by the stack protector. It is already protected by
  arc4_mtx.

I also saw the following sysctl's show up. Not as often as the ones
above, but still quite often:

- security.jail.jailed. Also mark security.jail.list as MPSAFE. They
  don't need locking or already use allprison_lock.

- kern.devname, used by devname(3), ttyname(3), etc.

This seems to reduce Giant locking inside sysctl by ~75% in my primitive
test setup.
2009-01-28 19:58:05 +00:00
..
cd9660 Use the correct field name for the size of the sierra_id. While this 2009-01-28 19:09:49 +00:00
coda Fix few missed accmode changes in coda. 2008-11-03 16:36:23 +00:00
deadfs Add a simple VOP_VPTOCNP implementation for deadfs which returns EBADF. 2008-12-12 00:59:36 +00:00
devfs Mark most often used sysctl's as MPSAFE. 2009-01-28 19:58:05 +00:00
fdescfs Retire the MALLOC and FREE macros. They are an abomination unto style(9). 2008-10-23 15:53:51 +00:00
fifofs Assert an exclusive vnode lock for fifo_cleanup() and fifo_close() since 2009-01-28 18:10:57 +00:00
hpfs According to phk@, VOP_STRATEGY should never, _ever_, return 2008-12-16 21:13:11 +00:00
msdosfs Turn a "panic: non-decreasing id" into an error printf. This seems 2009-01-13 22:35:26 +00:00
ntfs According to phk@, VOP_STRATEGY should never, _ever_, return 2008-12-16 21:13:11 +00:00
nullfs In null_lookup(), do the needed cleanup instead of panicing saying 2008-11-26 13:41:15 +00:00
nwfs According to phk@, VOP_STRATEGY should never, _ever_, return 2008-12-16 21:13:11 +00:00
portalfs Retire the MALLOC and FREE macros. They are an abomination unto style(9). 2008-10-23 15:53:51 +00:00
procfs vm_map_lock_read() does not increment map->timestamp, so we should 2008-12-29 12:45:11 +00:00
pseudofs Fix a deadlock which can occur due to a pseudofs vnode not getting unlocked. 2009-01-09 22:06:48 +00:00
smbfs According to phk@, VOP_STRATEGY should never, _ever_, return 2008-12-16 21:13:11 +00:00
tmpfs Introduce accmode_t. This is required for NFSv4 ACLs - it will be neccessary 2008-10-28 13:44:11 +00:00
udf Introduce accmode_t. This is required for NFSv4 ACLs - it will be neccessary 2008-10-28 13:44:11 +00:00
unionfs Simplify mode_t check treatment (suggested by trasz). 2008-11-25 03:49:41 +00:00