Re: [PATCH] qla4xxx: assign correct address for iscsi_cls_host

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

 



On 03/02/2012 03:55 AM, vikas.chaudhary@xxxxxxxxxx wrote:
> From: Vikas Chaudhary <vikas.chaudhary@xxxxxxxxxx>
> 
> Signed-off-by: Vikas Chaudhary <vikas.chaudhary@xxxxxxxxxx>
> ---
>  drivers/scsi/qla4xxx/ql4_os.c |    4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/scsi/qla4xxx/ql4_os.c b/drivers/scsi/qla4xxx/ql4_os.c
> index 281328d..d57f6eb 100644
> --- a/drivers/scsi/qla4xxx/ql4_os.c
> +++ b/drivers/scsi/qla4xxx/ql4_os.c
> @@ -834,7 +834,7 @@ static enum blk_eh_timer_return qla4xxx_eh_cmd_timed_out(struct scsi_cmnd *sc)
>  static void qla4xxx_set_port_speed(struct Scsi_Host *shost)
>  {
>  	struct scsi_qla_host *ha = to_qla_host(shost);
> -	struct iscsi_cls_host *ihost = shost_priv(shost);
> +	struct iscsi_cls_host *ihost = shost->shost_data;
>  	uint32_t speed = ISCSI_PORT_SPEED_UNKNOWN;
>  
>  	qla4xxx_get_firmware_state(ha);
> @@ -859,7 +859,7 @@ static void qla4xxx_set_port_speed(struct Scsi_Host *shost)
>  static void qla4xxx_set_port_state(struct Scsi_Host *shost)
>  {
>  	struct scsi_qla_host *ha = to_qla_host(shost);
> -	struct iscsi_cls_host *ihost = shost_priv(shost);
> +	struct iscsi_cls_host *ihost = shost->shost_data;
>  	uint32_t state = ISCSI_PORT_STATE_DOWN;
>  
>  	if (test_bit(AF_LINK_UP, &ha->flags))

We should just merge the iscsi_cls_host and libiscsi host. This is fine
for now.

Reviewed-by: Mike Christie <michaelc@xxxxxxxxxxx>
--
To unsubscribe from this list: 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


[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