[SCSI] qlogicpti: Add a slave_configure method

By configuring targets in slave_configure, we can eliminate a shadow
queuecommand, a shadow scsi_done, a write to the host template, abuse of
SCp->Message and SCp->Status, a use of kmap_atomic() and sniffing the
results of INQUIRY.

Signed-off-by: Matthew Wilcox <willy@linux.intel.com>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
This commit is contained in:
Matthew Wilcox
2007-10-01 08:07:52 -06:00
committed by James Bottomley
parent 50865c1d38
commit 9ec76fbf7d
2 changed files with 26 additions and 146 deletions

View File

@@ -380,8 +380,7 @@ struct qlogicpti {
unsigned char swsreg;
unsigned int
gotirq : 1, /* this instance got an irq */
is_pti : 1, /* Non-zero if this is a PTI board. */
sbits : 16; /* syncmode known bits */
is_pti : 1; /* Non-zero if this is a PTI board. */
};
/* How to twiddle them bits... */