[SCSI] mpt2sas: Do not call sas_is_tlr_enabled for RAID volumes.
authorKashyap, Desai <kashyap.desai@lsi.com>
Wed, 17 Feb 2010 10:38:36 +0000 (16:08 +0530)
committerJames Bottomley <James.Bottomley@suse.de>
Wed, 17 Feb 2010 23:49:25 +0000 (17:49 -0600)
commit3ed215259f2d8cd937abc833dc76e309173aaa52
tree9728404b0eb064096c7053efca1014bd6d350291
parent34c2b712992540ca436e97432ffc57c84c8f8c18
[SCSI] mpt2sas: Do not call sas_is_tlr_enabled for RAID volumes.

For RAID volume sas_is_tlr_enabled call will hit BUG at
scsi_transport_sas.c:163, since raid volume
is not visible to sas transport layer.
Now Added check to make sure arg pass in sas_is_tlr_enabled() is not a volume.

Signed-off-by: Kashyap Desai <kashyap.desai@lsi.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/mpt2sas/mpt2sas_scsih.c