]> www.infradead.org Git - users/jedix/linux-maple.git/commit
[SCSI] hpsa: removed unneeded structure member max_sg_entries and fix badly named...
authorStephen M. Cameron <scameron@beardog.cce.hp.com>
Thu, 19 Jan 2012 20:00:48 +0000 (14:00 -0600)
committerJoe Jin <joe.jin@oracle.com>
Tue, 15 May 2012 08:02:15 +0000 (16:02 +0800)
commit789b7d871127ae381708ba43326e547fa6d2b1cc
treeb78bb951924bf6f9d208af0660d67faa163d4dd6
parent25b5f8c9c976e24798314c07b50d35f7a0cab73d
[SCSI] hpsa: removed unneeded structure member max_sg_entries and fix badly named constant MAXSGENTRIES

We had both h->max_sg_entries and h->maxsgentries in the per controller
structure which is terribly confusing.  max_sg_entries was really
just a constant, 32, which defines how big the "block fetch table"
is, which is as large as the max number of SG elements embedded
within a command (excluding SG elements in chain blocks).

MAXSGENTRIES was the constant used to denote the max number of SG
elements embedded within a command, also a poor name.

So renamed MAXSGENTREIS to SG_ENTRIES_IN_CMD, and removed
h->max_sg_entries and replaced it with SG_ENTRIES_IN_CMD.

h->maxsgentries is unchanged, and is the maximum number of sg
elements the controller will support in a command, including
those in chain blocks, minus 1 for the chain block pointer..

Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
(cherry picked from commit d66ae08bad182e9a87859e120e61cfd51e402ed8)

Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/scsi/hpsa.c
drivers/scsi/hpsa.h
drivers/scsi/hpsa_cmd.h