Reduce the number of ccbs to 16, per the aha documentation. Move

bogus comment to proper place.

This should fix the hangs people are seeing under very heavy load, at
least it does for me.  Please let me know if you continue to have
problems.
This commit is contained in:
Warner Losh 1998-10-15 19:53:30 +00:00
parent 25a6a054af
commit ca1a3d8c33

View File

@ -55,7 +55,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: aha.c,v 1.7 1998/10/02 04:37:48 imp Exp $
* $Id: aha.c,v 1.8 1998/10/09 21:38:36 gibbs Exp $
*/
#include <sys/param.h>
@ -401,11 +401,11 @@ aha_fetch_adapter_info(struct aha_softc *aha)
printf("%s: Likely aha 1542A, which might not work properly\n",
aha_name(aha));
aha->max_sg = 17;
aha->max_sg = 17; /* Need 17 to do 64k I/O */
aha->diff_bus = 0;
aha->extended_lun = 0;
aha->extended_trans = 0;
aha->max_ccbs = 17; /* Need 17 to do 64k I/O */
aha->max_ccbs = 16;
/* Determine Sync/Wide/Disc settings */
length_param = sizeof(setup_info);
error = aha_cmd(aha, BOP_INQUIRE_SETUP_INFO, &length_param,