Commit 20d2d3afa87781fe2674ce17bfb16af08a436e81

Authored by Johannes Dickgreber
Committed by James Bottomley
1 parent fc2adcfd37

[SCSI] qla1280: eliminate wasted space in request and response ring

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>

Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff

drivers/scsi/qla1280.h
... ... @@ -91,8 +91,8 @@
91 91 #define INVALID_HANDLE (MAX_OUTSTANDING_COMMANDS + 2)
92 92  
93 93 /* ISP request and response entry counts (37-65535) */
94   -#define REQUEST_ENTRY_CNT 256 /* Number of request entries. */
95   -#define RESPONSE_ENTRY_CNT 16 /* Number of response entries. */
  94 +#define REQUEST_ENTRY_CNT 255 /* Number of request entries. */
  95 +#define RESPONSE_ENTRY_CNT 63 /* Number of response entries. */
96 96  
97 97 /*
98 98 * SCSI Request Block structure (sp) that is placed