diff options
Diffstat (limited to 'drivers/scsi/scsi_transport_fc.c')
| -rw-r--r-- | drivers/scsi/scsi_transport_fc.c | 20 | 
1 files changed, 6 insertions, 14 deletions
diff --git a/drivers/scsi/scsi_transport_fc.c b/drivers/scsi/scsi_transport_fc.c index 521f5838594b..5d6f348eb3d8 100644 --- a/drivers/scsi/scsi_transport_fc.c +++ b/drivers/scsi/scsi_transport_fc.c @@ -39,7 +39,6 @@  #include <scsi/scsi_netlink_fc.h>  #include <scsi/scsi_bsg_fc.h>  #include "scsi_priv.h" -#include "scsi_transport_fc_internal.h"  static int fc_queue_work(struct Scsi_Host *, struct work_struct *);  static void fc_vport_sched_delete(struct work_struct *work); @@ -262,6 +261,10 @@ static const struct {  	{ FC_PORTSPEED_8GBIT,		"8 Gbit" },  	{ FC_PORTSPEED_16GBIT,		"16 Gbit" },  	{ FC_PORTSPEED_32GBIT,		"32 Gbit" }, +	{ FC_PORTSPEED_20GBIT,		"20 Gbit" }, +	{ FC_PORTSPEED_40GBIT,		"40 Gbit" }, +	{ FC_PORTSPEED_50GBIT,		"50 Gbit" }, +	{ FC_PORTSPEED_100GBIT,		"100 Gbit" },  	{ FC_PORTSPEED_NOT_NEGOTIATED,	"Not Negotiated" },  };  fc_bitfield_name_search(port_speed, fc_port_speed_names) @@ -2089,7 +2092,7 @@ fc_timed_out(struct scsi_cmnd *scmd)   * on the rport.   */  static void -fc_user_scan_tgt(struct Scsi_Host *shost, uint channel, uint id, uint lun) +fc_user_scan_tgt(struct Scsi_Host *shost, uint channel, uint id, u64 lun)  {  	struct fc_rport *rport;  	unsigned long flags; @@ -2121,7 +2124,7 @@ fc_user_scan_tgt(struct Scsi_Host *shost, uint channel, uint id, uint lun)   * object as the parent.   */  static int -fc_user_scan(struct Scsi_Host *shost, uint channel, uint id, uint lun) +fc_user_scan(struct Scsi_Host *shost, uint channel, uint id, u64 lun)  {  	uint chlo, chhi;  	uint tgtlo, tgthi; @@ -3008,10 +3011,6 @@ fc_remote_port_delete(struct fc_rport  *rport)  	spin_unlock_irqrestore(shost->host_lock, flags); -	if (rport->roles & FC_PORT_ROLE_FCP_INITIATOR && -	    shost->active_mode & MODE_TARGET) -		fc_tgt_it_nexus_destroy(shost, (unsigned long)rport); -  	scsi_target_block(&rport->dev);  	/* see if we need to kill io faster than waiting for device loss */ @@ -3052,7 +3051,6 @@ fc_remote_port_rolechg(struct fc_rport  *rport, u32 roles)  	struct fc_host_attrs *fc_host = shost_to_fc_host(shost);  	unsigned long flags;  	int create = 0; -	int ret;  	spin_lock_irqsave(shost->host_lock, flags);  	if (roles & FC_PORT_ROLE_FCP_TARGET) { @@ -3061,12 +3059,6 @@ fc_remote_port_rolechg(struct fc_rport  *rport, u32 roles)  			create = 1;  		} else if (!(rport->roles & FC_PORT_ROLE_FCP_TARGET))  			create = 1; -	} else if (shost->active_mode & MODE_TARGET) { -		ret = fc_tgt_it_nexus_create(shost, (unsigned long)rport, -					     (char *)&rport->node_name); -		if (ret) -			printk(KERN_ERR "FC Remore Port tgt nexus failed %d\n", -			       ret);  	}  	rport->roles = roles;  | 
