summaryrefslogtreecommitdiffstats
path: root/sys/dev/aac
diff options
context:
space:
mode:
authorscottl <scottl@FreeBSD.org>2004-02-07 03:30:32 +0000
committerscottl <scottl@FreeBSD.org>2004-02-07 03:30:32 +0000
commit4385c848dbd9fa2eaf1bff490bd4ade77f875e3a (patch)
tree335e26f4e5996ce4859003e130dfca602fb2d5c9 /sys/dev/aac
parent03c17dd8925ab3cd17375d7db3e1236a7ff2e95e (diff)
downloadFreeBSD-src-4385c848dbd9fa2eaf1bff490bd4ade77f875e3a.zip
FreeBSD-src-4385c848dbd9fa2eaf1bff490bd4ade77f875e3a.tar.gz
Reduce AAC_MAX_FIBS to work around some yet-unidentified bugs in the
handling of resources shortages. The driver is now so fast that it can completely fill all 512 slots on the card, but for some reason only 511 slots are being allocated. Anything that tries to go into the 512th slot gets silently lost. Both bugs need to be fixed at a later date, but this should fix the reports of hangs in getblk and vinvalb.
Diffstat (limited to 'sys/dev/aac')
-rw-r--r--sys/dev/aac/aacvar.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/aac/aacvar.h b/sys/dev/aac/aacvar.h
index a094f8b..377e78f 100644
--- a/sys/dev/aac/aacvar.h
+++ b/sys/dev/aac/aacvar.h
@@ -58,7 +58,7 @@
*/
#define AAC_FIB_COUNT (PAGE_SIZE/sizeof(struct aac_fib))
#define AAC_PREALLOCATE_FIBS 128
-#define AAC_MAX_FIBS 512
+#define AAC_MAX_FIBS (512 - AAC_FIB_COUNT)
/*
* The controller reports status events in AIFs. We hang on to a number of
OpenPOWER on IntegriCloud