Commit e14f66e9 authored by Hannes Reinecke's avatar Hannes Reinecke Committed by James Bottomley

advansys: Remove cmd_per_lun setting

Ancient, and pretty much obsolete by now.
Signed-off-by: default avatarHannes Reinecke <hare@suse.de>
Signed-off-by: default avatarJames Bottomley <JBottomley@Odin.com>
parent 3754fc64
...@@ -11211,24 +11211,6 @@ static int advansys_board_found(struct Scsi_Host *shost, unsigned int iop, ...@@ -11211,24 +11211,6 @@ static int advansys_board_found(struct Scsi_Host *shost, unsigned int iop,
goto err_free_dma; goto err_free_dma;
} }
/*
* Following v1.3.89, 'cmd_per_lun' is no longer needed
* and should be set to zero.
*
* But because of a bug introduced in v1.3.89 if the driver is
* compiled as a module and 'cmd_per_lun' is zero, the Mid-Level
* SCSI function 'allocate_device' will panic. To allow the driver
* to work as a module in these kernels set 'cmd_per_lun' to 1.
*
* Note: This is wrong. cmd_per_lun should be set to the depth
* you want on untagged devices always.
#ifdef MODULE
*/
shost->cmd_per_lun = 1;
/* #else
shost->cmd_per_lun = 0;
#endif */
/* /*
* Set the maximum number of scatter-gather elements the * Set the maximum number of scatter-gather elements the
* adapter can handle. * adapter can handle.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment