NetBSD/sys
bouyer 80620a83a7 Improve handling of memory shortage, to fix problems like:
sd3(mpt0:0:1:0): unable to allocate scsipi_xfer
sd3: not queued, error 12
Havard Eidnes's analysis of this problem is that the scsipi_xfer pool is
competing for resources with other pools, including the the inode and vnode
pools which can grow quite large.

*_scsipi_cmd(): don't biodone the buffer if scsipi_make_xs() fails, let the
   caller deal with the problem
start function of block devices drivers: dequeue the buffer after the
   scsipi_command() call. If scsipi_command() fails with ENOMEM don't dequeue
   the buffer, and schedule a callout to call the start function after
   some delay.
scsipi_init(): prime the scsipi_xfer_pool with one page. This ensure that
   there is always some scsipi_xfer to play with. If scsipi_command() fails
   because of pool_get(), we're sure there will be resources available later,
   when the pending commands have completed.

Reviewed by Jason Thorpe and Havard Eidnes.
Todo: remove the "unable to allocate scsipi_xfer" and "not queued, error %d"
printfs, but I choose to keep them for now, to help make sure the code does
what it should.
2004-08-27 20:37:28 +00:00
..
altq
arch PTDpaddr -> PDPpaddr 2004-08-27 03:51:34 +00:00
coda
compat fix debug printf - lm_addr is not pointer anumore 2004-08-24 17:41:54 +00:00
conf Import STI wscons(4) driver from OpenBSD and add new driver for PS/2 2004-08-26 16:48:06 +00:00
crypto
ddb Make ddb's "show sched_qs" aware of big-endian sched_qs arrangements. 2004-07-27 02:15:07 +00:00
dev Improve handling of memory shortage, to fix problems like: 2004-08-27 20:37:28 +00:00
dist/pf/net - rename PFIL_NEWIF to PFIL_IFNET, and handle interface detach events 2004-07-27 12:22:59 +00:00
fs Fixing age old cruft: 2004-08-15 07:19:54 +00:00
gdbscripts
ipkdb
kern bug reported by millert@openbsd: 2004-08-25 09:03:23 +00:00
lib
lkm also provide an example how a pci driver LKM looks 2004-08-18 14:06:13 +00:00
miscfs Do previous slightly differently - just pass a struct lwp * and derive the 2004-08-27 07:02:45 +00:00
net Pass correct "mbuf" pointer to BPF framework. 2004-08-20 07:46:21 +00:00
net80211 Cosmetic: remove extraneous blank line. 2004-08-10 21:58:31 +00:00
netatalk
netccitt
netinet fix m_pulldown() usage, it's different from m_pullup(). 2004-08-22 21:38:21 +00:00
netinet6 run PFIL_IFADDR hooks on SIOCAIFADDR_IN6 and SIOCDIFADDR_IN6 as well. 2004-07-26 13:44:35 +00:00
netipsec Remove redundant instantiation of esp_net_deflev sysctl node. Not 2004-08-15 19:10:26 +00:00
netisdn
netiso
netkey as we use arc4random(9) for random number, we no longer need to reseed random 2004-08-27 04:56:16 +00:00
netnatm
netns
netsmb
nfs nfs_request: a workaround for servers doing "maproot". 2004-08-24 20:09:44 +00:00
opencrypto
stand
sys add a "drvctl" pseudo-device as userland interface to the autoconf 2004-08-18 12:19:29 +00:00
ufs Make sure to set IMNT_DTYPE here... 2004-08-16 12:49:55 +00:00
uvm
Makefile