RE: [PATCH] scsi_transport_sas.c - mapping the rphy channel equal to the port identifier

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 Here's the patch, just in case my mailer messed things up.

> -----Original Message-----
> From: linux-scsi-owner@xxxxxxxxxxxxxxx 
> [mailto:linux-scsi-owner@xxxxxxxxxxxxxxx] On Behalf Of Moore, Eric
> Sent: Friday, January 13, 2006 4:25 PM
> To: linux-scsi@xxxxxxxxxxxxxxx; hch@xxxxxx; 
> James.Bottomley@xxxxxxxxxxxx
> Subject: [PATCH] scsi_transport_sas.c - mapping the rphy 
> channel equal to the port identifier
> 
> Remapping the channel number to the port identifier.
> 
> We will be mapping the RAID volumes in mptsas to a reserved 
> channel that
> is one larger than the anticapated number of ports on the direct
> attached host
> adapter.
> 
> Signed-off-by: Eric Moore <Eric.Moore@xxxxxxxx>
> 
> --- scsi-misc-2.6-old/drivers/scsi/scsi_transport_sas.c	
> 2006-01-13
> 11:44:08.000000000 -0700
> +++ scsi-misc-2.6/drivers/scsi/scsi_transport_sas.c	2006-01-13
> 12:25:21.000000000 -0700
> @@ -638,7 +638,7 @@
>  	mutex_unlock(&sas_host->lock);
>  
>  	if (rphy->scsi_target_id != -1) {
> -		scsi_scan_target(&rphy->dev, parent->number,
> +		scsi_scan_target(&rphy->dev, parent->port_identifier,
>  				rphy->scsi_target_id, ~0, 0);
>  	}
>  
> @@ -735,9 +745,9 @@
>  		if (rphy->scsi_target_id == -1)
>  			continue;
>  
> -		if ((channel == SCAN_WILD_CARD || channel ==
> parent->number) &&
> +		if ((channel == SCAN_WILD_CARD || channel ==
> parent->port_identifier) &&
>  		    (id == SCAN_WILD_CARD || id ==
> rphy->scsi_target_id)) {
> -			scsi_scan_target(&rphy->dev, parent->number,
> +			scsi_scan_target(&rphy->dev,
> parent->port_identifier,
>  					 rphy->scsi_target_id, lun, 1);
>  		}
>  	}
> -
> : send the line "unsubscribe 
> linux-scsi" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

Attachment: raid-1.patch
Description: raid-1.patch


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux