megaraid_sas: Fix for IO failing post OCR in SRIOV environment
authorSumit Saxena <sumit.saxena@avagotech.com>
Thu, 28 Jan 2016 15:44:25 +0000 (21:14 +0530)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 24 Feb 2016 02:27:02 +0000 (21:27 -0500)
commit8f67c8c518f324874e8caf93d1f4468d25754333
tree4dcc442e24778215d60f734e71c26478c120e03c
parentde983561e6de5c62a6b4200f8304267d7a5cc872
megaraid_sas: Fix for IO failing post OCR in SRIOV environment

Driver assumes that VFs always have peers present whenever they have
same LD IDs. But this is not the case.  This patch handles the above
mentioned by explicitly checking for a peer before making HA/non-HA path
decision.

Signed-off-by: Uday Lingala <uday.lingala@avagotech.com>
Signed-off-by: Sumit Saxena <sumit.saxena@avagotech.com>
Reviewed-by: Tomas Henzl <thenzl@redhat.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/megaraid/megaraid_sas.h
drivers/scsi/megaraid/megaraid_sas_base.c
drivers/scsi/megaraid/megaraid_sas_fusion.c