Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b84b1d52 authored by Hannes Reinecke's avatar Hannes Reinecke Committed by James Bottomley
Browse files

scsi: Do not set cmd_per_lun to 1 in the host template



'0' is now used as the default cmd_per_lun value,
so there's no need to explicitly set it to '1' in the
host template.

Signed-off-by: default avatarHannes Reinecke <hare@suse.de>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarJames Bottomley <JBottomley@Odin.com>
parent f532a3f9
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -84,7 +84,6 @@ static struct scsi_host_template cciss_driver_template = {
	.show_info		= cciss_scsi_show_info,
	.queuecommand		= cciss_scsi_queue_command,
	.this_id		= 7,
	.cmd_per_lun		= 1,
	.use_clustering		= DISABLE_CLUSTERING,
	/* Can't have eh_bus_reset_handler or eh_host_reset_handler for cciss */
	.eh_device_reset_handler= cciss_eh_device_reset_handler,
+0 −1
Original line number Diff line number Diff line
@@ -1611,7 +1611,6 @@ static struct scsi_host_template scsi_driver_template = {
	.this_id		= -1,
	.sg_tablesize		= SG_ALL,
	.use_clustering		= ENABLE_CLUSTERING,
	.cmd_per_lun		= 1,
	.can_queue		= 1,
	.sdev_attrs		= sbp2_scsi_sysfs_attrs,
};
+0 −1
Original line number Diff line number Diff line
@@ -297,7 +297,6 @@ static struct scsi_host_template zfcp_scsi_host_template = {
				     * ZFCP_QDIO_MAX_SBALS_PER_REQ) - 2) * 8,
				   /* GCD, adjusted later */
	.dma_boundary		 = ZFCP_QDIO_SBALE_LEN - 1,
	.cmd_per_lun		 = 1,
	.use_clustering		 = 1,
	.shost_attrs		 = zfcp_sysfs_shost_attrs,
	.sdev_attrs		 = zfcp_sysfs_sdev_attrs,
+0 −1
Original line number Diff line number Diff line
@@ -1064,7 +1064,6 @@ static struct scsi_host_template driver_template =
     .can_queue         	= 1			/* can_queue */,        
     .this_id           	= 7			/* SCSI ID of the chip */,
     .sg_tablesize      	= 32			/*SG_ALL*/ /*SG_NONE*/, 
     .cmd_per_lun       	= 1			/* commands per lun */, 
     .unchecked_isa_dma 	= 1			/* unchecked_isa_dma */,
     .use_clustering    	= ENABLE_CLUSTERING,
};
+0 −1
Original line number Diff line number Diff line
@@ -1078,7 +1078,6 @@ static struct scsi_host_template inia100_template = {
	.can_queue		= 1,
	.this_id		= 1,
	.sg_tablesize		= SG_ALL,
	.cmd_per_lun 		= 1,
	.use_clustering		= ENABLE_CLUSTERING,
};

Loading