freebsd-skq/sys
jeff bfd7640850 - Hold the buf lock while manipulating and inspecting its fields.
- Use gbincore() and not incore() so that we can drop the vnode interlock
   as we acquire the buflock.
 - Use GB_LOCK_NOWAIT when getting bufs for read ahead clusters so that we
   don't block on locked bufs.
 - Convert a while loop to a howmany() that will most likely be faster on
   modern processors.  There is another while loop divide that was left
   near by because it is operating on a 64bit int and is most likely faster.
 - Cleanup the cluster_read() code a little to get rid of a goto and make
   the logic clearer.

Tested on:	x86, alpha
Tested by:	Steve Kargl <sgk@troutmask.apl.washington.edu>
Reviewd by:	arch
2003-03-04 21:35:28 +00:00
..
alpha Replace calls to WITNESS_SLEEP() and witness_list() with equivalent calls 2003-03-04 21:03:05 +00:00
amd64 Replace calls to WITNESS_SLEEP() and witness_list() with equivalent calls 2003-03-04 21:03:05 +00:00
arm MB_LEN_MAX is not MD, move it to the MI limits.h. 2002-12-22 06:38:45 +00:00
boot FreeBSD 5.0 has stopped shipping /modules 2.5 years ago. Catch 2003-03-03 22:53:35 +00:00
cam Make nokqfilter() return the correct return value. 2003-03-03 16:24:47 +00:00
coda Gigacommit to improve device-driver source compatibility between 2003-03-03 12:15:54 +00:00
compat Clean up whitespace and remove register keyword. 2003-03-03 09:17:12 +00:00
conf Wrap the hyperthreading support code with the HTT kernel option. 2003-03-04 20:24:53 +00:00
contrib Gigacommit to improve device-driver source compatibility between 2003-03-03 12:15:54 +00:00
crypto Remove some unnecessary casts. 2003-01-25 22:41:22 +00:00
ddb Change the process flags P_KSES to be P_THREADED. 2003-02-27 02:05:19 +00:00
dev Initialize the second buffer for mirroring to point to itself and not its 2003-03-04 10:15:19 +00:00
fs - Add a new 'flags' parameter to getblk(). 2003-03-04 00:04:44 +00:00
geom Initialize the second buffer for mirroring to point to itself and not its 2003-03-04 10:15:19 +00:00
gnu - Add a new 'flags' parameter to getblk(). 2003-03-04 00:04:44 +00:00
i4b Gigacommit to improve device-driver source compatibility between 2003-03-03 12:15:54 +00:00
i386 Replace calls to WITNESS_SLEEP() and witness_list() with equivalent calls 2003-03-04 21:03:05 +00:00
ia64 Replace calls to WITNESS_SLEEP() and witness_list() with equivalent calls 2003-03-04 21:03:05 +00:00
isa Gigacommit to improve device-driver source compatibility between 2003-03-03 12:15:54 +00:00
isofs/cd9660 Finish cleanup of vprint() which was begun with changing v_tag to a string. 2003-03-03 19:15:40 +00:00
kern - Hold the buf lock while manipulating and inspecting its fields. 2003-03-04 21:35:28 +00:00
libkern Further GC of M_STRING, missed previously. 2003-02-26 01:00:29 +00:00
modules A cute yet small MAC policy that provides a simple ACL mechanism to 2003-03-02 23:01:42 +00:00
net Make nokqfilter() return the correct return value. 2003-03-03 16:24:47 +00:00
netatalk Back out M_* changes, per decision of the TRB. 2003-02-19 05:47:46 +00:00
netatm There is no reason to be cute with ntohl(). Just call it directly rather 2003-02-23 22:26:39 +00:00
netgraph Gigacommit to improve device-driver source compatibility between 2003-03-03 12:15:54 +00:00
netinet More low-hanging fruit: kill caddr_t in calls to wakeup(9) / [mt]sleep(9). 2003-03-02 16:54:40 +00:00
netinet6 Fix another case for timewait. 2003-02-24 02:06:50 +00:00
netipsec fix compilation w/o INET6 2003-02-28 20:06:29 +00:00
netipx Allocate struct ipx_ifaddrs with an initial reference count of 1, not 0. 2003-02-25 15:10:23 +00:00
netkey Back out M_* changes, per decision of the TRB. 2003-02-19 05:47:46 +00:00
netnatm Back out M_* changes, per decision of the TRB. 2003-02-19 05:47:46 +00:00
netncp Gigacommit to improve device-driver source compatibility between 2003-03-03 12:15:54 +00:00
netns Back out M_* changes, per decision of the TRB. 2003-02-19 05:47:46 +00:00
netsmb Gigacommit to improve device-driver source compatibility between 2003-03-03 12:15:54 +00:00
nfs Back out M_* changes, per decision of the TRB. 2003-02-19 05:47:46 +00:00
nfsclient - Add a new 'flags' parameter to getblk(). 2003-03-04 00:04:44 +00:00
nfsserver More low-hanging fruit: kill caddr_t in calls to wakeup(9) / [mt]sleep(9). 2003-03-02 16:54:40 +00:00
opencrypto Gigacommit to improve device-driver source compatibility between 2003-03-03 12:15:54 +00:00
pc98 Make nokqfilter() return the correct return value. 2003-03-03 16:24:47 +00:00
pccard Gigacommit to improve device-driver source compatibility between 2003-03-03 12:15:54 +00:00
pci Fix bug introduced in 1.130. For the < MHLEN case, we should 2003-03-04 20:19:26 +00:00
posix4 Back out M_* changes, per decision of the TRB. 2003-02-19 05:47:46 +00:00
powerpc Replace calls to WITNESS_SLEEP() and witness_list() with equivalent calls 2003-03-04 21:03:05 +00:00
rpc
security Replace calls to WITNESS_SLEEP() and witness_list() with equivalent calls 2003-03-04 21:03:05 +00:00
sparc64 Replace calls to WITNESS_SLEEP() and witness_list() with equivalent calls 2003-03-04 21:03:05 +00:00
sys A small overhaul of witness: 2003-03-04 20:56:39 +00:00
tools Remove miidevs.h and generate it from miidevs at compile time. 2003-01-19 02:59:34 +00:00
ufs - Add a new 'flags' parameter to getblk(). 2003-03-04 00:04:44 +00:00
vm Replace calls to WITNESS_SLEEP() and witness_list() with equivalent calls 2003-03-04 21:03:05 +00:00
Makefile