[SCSI] mpt2sas: Basic Code Cleanup in mpt2sas_base
authorKashyap, Desai <kashyap.desai@lsi.com>
Tue, 4 Jan 2011 06:09:20 +0000 (11:39 +0530)
committerJames Bottomley <James.Bottomley@suse.de>
Mon, 24 Jan 2011 15:34:49 +0000 (09:34 -0600)
commitd5bd3491c8c30b98f642cab4361ff1a43955ccd4
treefd7f63bed166cc2dd654c165bf8b030ad324c6fe
parentfb396bec76187aae1a0eaf5b7f21327b8cb34fec
[SCSI] mpt2sas: Basic Code Cleanup in mpt2sas_base

Basic Code Cleanup:
(1) _base_get_cb_idx and mpt2sas_base_free_smid were reorganized in
similar fashion so the order of obtaining the cbx and smid are
scsiio,
hi_priority, and internal.
(2) The hi_priority and internal request queue struct was made
smaller
by removing the scmd and chain_tracker, thus saving memory
allocation.
(3) For scsiio request, a new structure was created having the same
elements from the former request tracker struct.

Signed-off-by: Kashyap Desai <kashyap.desai@lsi.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/mpt2sas/mpt2sas_base.c
drivers/scsi/mpt2sas/mpt2sas_base.h
This page took 0.024772 seconds and 5 git commands to generate.