On Thu, 2008-05-15 at 11:02 +0200, Hannes Reinecke wrote: <snip> > >> @@ -478,24 +491,9 @@ static int rdac_activate(struct scsi_device *sdev) > >> struct rdac_dh_data *h = get_rdac_data(sdev); > >> int err = SCSI_DH_OK; > >> > >> - if (h->lun == UNINITIALIZED_LUN) { > >> - err = get_lun(sdev); > >> - if (err != SCSI_DH_OK) > >> - goto done; > >> - } > >> - > >> err = check_ownership(sdev); > >> - switch (err) { > >> - case RDAC_UNOWNED: > >> - break; > >> - case RDAC_OWNED: > >> - err = SCSI_DH_OK; > >> - goto done; > >> - case RDAC_FAILED: > >> - default: > >> - err = SCSI_DH_IO; > > > > What does this change yield ? (under check_ownership) > > > We're now setting the lun state explicitly, so there's > no need to return different error codes. That is my question. what did we gain by the addition of lun_state ? -- dm-devel mailing list dm-devel@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/dm-devel