]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
[SCSI] qla1280: eliminate wasted space in request and response ring
authorJohannes Dickgreber <tanzy@gmx.de>
Wed, 19 Sep 2007 23:07:50 +0000 (01:07 +0200)
committerJames Bottomley <jejb@mulgrave.localdomain>
Tue, 23 Oct 2007 16:35:35 +0000 (12:35 -0400)
i think there is wasted space in allocated pages for request and
response rings.  The allocations are made with REQUEST_ENTRY_CNT + 1
and RESPONSE_ENTRY_CNT + 1, but they are set with 256 and 16.

So we got more pages, which we dont use very much so eliminate them.

Signed-off-by: Johannes Dickgreber <tanzy@gmx.de>
Acked-by: Jes Sorensen <jes@sgi.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/qla1280.h

index 59915fb703012187f6b180708a8643da3f46a165..ff2c363ead26c8bb114a58f9db89675a28eb2dda 100644 (file)
@@ -91,8 +91,8 @@
 #define INVALID_HANDLE                 (MAX_OUTSTANDING_COMMANDS + 2)
 
 /* ISP request and response entry counts (37-65535) */
-#define REQUEST_ENTRY_CNT              256 /* Number of request entries. */
-#define RESPONSE_ENTRY_CNT             16  /* Number of response entries. */
+#define REQUEST_ENTRY_CNT              255 /* Number of request entries. */
+#define RESPONSE_ENTRY_CNT             63  /* Number of response entries. */
 
 /*
  * SCSI Request Block structure  (sp)  that is placed