freebsd-dev/sys
Scott Long 8480cc638e o Move the cleanup of the fib maps into aac_free_commands() so as to
retain symetry with aac_alloc_commans().  Since aac_alloc_commands()
  allocates fib maps and places them onto the fib lists, aac_free_commands()
  should reverse those operations.

o Combine two ifs with the same body with an ||.

o Switch from uintptr_t to uint32_t for fib map load operations.
  The target is a uint32_t so using this type for the map load call
  avoids an extra cast.  uintptr_t should only be used when you need
  an "int sized the same as the machine's poitner size" which is not
  the case here.

o Removed the commented out M_WAITOK flag in the allocation in
  aac_alloc_commands().  The kernel will only block in the allocator
  if it can grow the size of the kernel.  This usually results in a
  page-out which could involve this aac device.  Thus, sleeping here
  could deadlock the machine.  Assuming this operation is occurring outside
  of attach time, we have enough fibs to operate anyway, so waiting for
  fibs to free up is okay if not optimal.

o In aac_alloc_commands(), if we cannot dmamem_alloc additional fib
  space, free the fib map.

o In aac_alloc_commands(), if we cannot create per-command dmamaps, don't
  lose track of the fib map that is mapping all of the commands that we
  have already released into the free pool.  Instead, just cut out of
  the loop and modify aac_free_commands to not attempt to free maps that
  have not been allocated.

o Don't use a magic number when pre-allocating fibs.

o Use PAGE_SIZE to allocate in page sized chunks instead of an
  architecture specific constant.

Submitted by: gibbs
2003-02-19 21:38:29 +00:00
..
alpha Back out M_* changes, per decision of the TRB. 2003-02-19 05:47:46 +00:00
amd64 Back out M_* changes, per decision of the TRB. 2003-02-19 05:47:46 +00:00
arm
boot Don't bother to build ficl if NOFORTH is defined. 2003-02-13 04:35:04 +00:00
cam Back out M_* changes, per decision of the TRB. 2003-02-19 05:47:46 +00:00
coda Back out M_* changes, per decision of the TRB. 2003-02-19 05:47:46 +00:00
compat Back out M_* changes, per decision of the TRB. 2003-02-19 05:47:46 +00:00
conf Munge the zs sbus attachment to work with fhc. This is a bit of a hack, 2003-02-19 08:29:17 +00:00
contrib Back out M_* changes, per decision of the TRB. 2003-02-19 05:47:46 +00:00
crypto
ddb - Split the struct kse into struct upcall and struct kse. struct kse will 2003-02-17 05:14:26 +00:00
dev o Move the cleanup of the fib maps into aac_free_commands() so as to 2003-02-19 21:38:29 +00:00
fs Do not call smbfs_attr_cacheremove() in the EXDEV case in smbfs_rename(). 2003-02-19 11:54:35 +00:00
geom Back out M_* changes, per decision of the TRB. 2003-02-19 05:47:46 +00:00
gnu Back out M_* changes, per decision of the TRB. 2003-02-19 05:47:46 +00:00
i4b Back out M_* changes, per decision of the TRB. 2003-02-19 05:47:46 +00:00
i386 #include "opt_cpu.h" so we notice our options. 2003-02-19 20:50:02 +00:00
ia64 Back out M_* changes, per decision of the TRB. 2003-02-19 05:47:46 +00:00
isa Switch to using the TSC code in i386/i386/tsc.c. 2003-02-11 11:43:25 +00:00
isofs/cd9660 Back out M_* changes, per decision of the TRB. 2003-02-19 05:47:46 +00:00
kern Count non-threaded group. 2003-02-19 13:40:24 +00:00
libkern Back out M_* changes, per decision of the TRB. 2003-02-19 05:47:46 +00:00
modules Split the arch-specific AGP files into the appropriate files.* and do the same 2003-02-14 06:33:52 +00:00
net Back out M_* changes, per decision of the TRB. 2003-02-19 05:47:46 +00:00
netatalk Back out M_* changes, per decision of the TRB. 2003-02-19 05:47:46 +00:00
netatm Back out M_* changes, per decision of the TRB. 2003-02-19 05:47:46 +00:00
netgraph Back out M_* changes, per decision of the TRB. 2003-02-19 05:47:46 +00:00
netinet Correct comments. 2003-02-19 21:33:46 +00:00
netinet6 Back out M_* changes, per decision of the TRB. 2003-02-19 05:47:46 +00:00
netipsec Back out M_* changes, per decision of the TRB. 2003-02-19 05:47:46 +00:00
netipx Back out M_* changes, per decision of the TRB. 2003-02-19 05:47:46 +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 Back out M_* changes, per decision of the TRB. 2003-02-19 05:47:46 +00:00
netns Back out M_* changes, per decision of the TRB. 2003-02-19 05:47:46 +00:00
netsmb Back out M_* changes, per decision of the TRB. 2003-02-19 05:47:46 +00:00
nfs Back out M_* changes, per decision of the TRB. 2003-02-19 05:47:46 +00:00
nfsclient Back out M_* changes, per decision of the TRB. 2003-02-19 05:47:46 +00:00
nfsserver Back out M_* changes, per decision of the TRB. 2003-02-19 05:47:46 +00:00
opencrypto Back out M_* changes, per decision of the TRB. 2003-02-19 05:47:46 +00:00
pc98 Back out M_* changes, per decision of the TRB. 2003-02-19 05:47:46 +00:00
pccard Back out M_* changes, per decision of the TRB. 2003-02-19 05:47:46 +00:00
pci Fix panic on sparc64 introduced in my last commit. I really 2003-02-19 18:33:29 +00:00
posix4 Back out M_* changes, per decision of the TRB. 2003-02-19 05:47:46 +00:00
powerpc Back out M_* changes, per decision of the TRB. 2003-02-19 05:47:46 +00:00
rpc
security Back out M_* changes, per decision of the TRB. 2003-02-19 05:47:46 +00:00
sparc64 Fix definite panic when releasing interrupt resources. 2003-02-19 19:40:40 +00:00
sys Eliminate unused KSE symbols. 2003-02-19 06:59:00 +00:00
tools
ufs Back out M_* changes, per decision of the TRB. 2003-02-19 05:47:46 +00:00
vm Back out M_* changes, per decision of the TRB. 2003-02-19 05:47:46 +00:00
Makefile