Преглед на файлове

[SCSI] scsi_dh: Initialize path state to be passive when path is not owned

Set the path state to be passive when we learn that the controller does
not own the path to the LUN.

This will avoid sending even a single i/o thru the passive path at the
probe time.

Signed-off-by: Chandra Seetharaman <sekharan@us.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Chandra Seetharaman преди 17 години
родител
ревизия
5a36756b8b
променени са 1 файла, в които са добавени 3 реда и са изтрити 0 реда
  1. 3 0
      drivers/scsi/device_handler/scsi_dh_rdac.c

+ 3 - 0
drivers/scsi/device_handler/scsi_dh_rdac.c

@@ -401,6 +401,9 @@ static int check_ownership(struct scsi_device *sdev, struct rdac_dh_data *h)
 		}
 	}
 
+	if (h->lun_state == RDAC_LUN_UNOWNED)
+		h->state = RDAC_STATE_PASSIVE;
+
 	return err;
 }