From: Valentine Fatiev <valentinef@nvidia.com>
Subject: [PATCH] BACKPORT: drivers/infiniband/ulp/iser/iser_verbs.c

Change-Id: I800b96af061a25ce0706e8536f2068d92eff50cd
---
 drivers/infiniband/ulp/iser/iser_verbs.c | 4 ++++
 1 file changed, 4 insertions(+)

--- a/drivers/infiniband/ulp/iser/iser_verbs.c
+++ b/drivers/infiniband/ulp/iser/iser_verbs.c
@@ -913,7 +913,11 @@ u8 iser_check_task_pi_status(struct iscs
 			sector_t sector_off = mr_status.sig_err.sig_err_offset;
 
 			sector_div(sector_off, sector_size + 8);
+#ifdef HAVE_SCSI_GET_SECTOR
 			*sector = scsi_get_sector(iser_task->sc) + sector_off;
+#else
+			*sector = scsi_get_lba(iser_task->sc) + sector_off;
+#endif
 
 			iser_err("PI error found type %d at sector %llx "
 			       "expected %x vs actual %x\n",
