[2437] in linux-scsi channel archive
aic7xxx problems in pre-2.0.31-9 [Patch2]
daemon@ATHENA.MIT.EDU (Doug Ledford)
Mon Sep 8 23:07:28 1997
To: torvalds@transmeta.com
cc: "Daniel M. Eischen" <deischen@iworks.InterWorks.org>,
linux-kernel@vger.rutgers.edu, linux-scsi@vger.rutgers.edu
In-reply-to: Your message of "Mon, 08 Sep 1997 16:09:47 CDT."
Date: Mon, 08 Sep 1997 18:05:51 -0500
From: Doug Ledford <dledford@dialnet.net>
This is a multipart MIME message.
--===_0_Mon_Sep__8_18:03:24_CDT_1997
Content-Type: text/plain; charset=us-ascii
--------
I left out 2 lines that should have been in that other patch (I pared too
much). Here they are:
--===_0_Mon_Sep__8_18:03:24_CDT_1997
Content-Type: application/octet-stream
Content-Description: aic7xxx.patch2
--- linux-2_0_31-pre/drivers/scsi/aic7xxx.c.old Mon Sep 8 15:41:32 1997
+++ linux/drivers/scsi/aic7xxx.c Mon Sep 8 17:57:32 1997
@@ -872,5 +872,5 @@
long r_total512; /* 512 byte blocks read */
long r_bins[10]; /* binned reads */
- } stats[2][16][8]; /* channel, target, lun */
+ } stats[16][8]; /* channel, target, lun */
#endif /* AIC7XXX_PROC_STATS */
};
@@ -2001,5 +2010,5 @@
int x;
- sp = &p->stats[cmd->channel & 0x01][cmd->target & 0x0F][cmd->lun & 0x07];
+ sp = &p->stats[((cmd->channel << 3) | cmd->target) & 0xf][cmd->lun & 0x7];
sp->xfers++;
--===_0_Mon_Sep__8_18:03:24_CDT_1997
Content-Type: text/plain; charset=us-ascii
*****************************************************************************
* Doug Ledford * Unix, Novell, Dos, Windows 3.x, *
* dledford@dialnet.net 873-DIAL * WfW, Windows 95 & NT Technician *
* PPP access $14.95/month *****************************************
* Springfield, MO and surrounding * Usenet news, e-mail and shell account.*
* communities. Sign-up online at * Web page creation and hosting, other *
* 873-9000 V.34 * services available, call for info. *
*****************************************************************************
--===_0_Mon_Sep__8_18:03:24_CDT_1997--