Commit 318c7c4325ad2c4e969a0b79008192ce8c054463

Authored by Suma Ramars
Committed by James Bottomley
1 parent 87aa619c17

[SCSI] fnic: Remove QUEUE_FULL handling code

Remove fnic driver QUEUE_FULL handling code instead let SCSI mid layer
handle queue full and use its algorithm to ramp down/up queue

Signed-off-by: Suma Ramars <sramars@cisco.com>
Signed-off-by: Hiral Patel <hiralpat@cisco.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>

Showing 1 changed file with 0 additions and 32 deletions Side-by-side Diff

drivers/scsi/fnic/fnic_scsi.c
... ... @@ -818,38 +818,6 @@
818 818 if (icmnd_cmpl->flags & FCPIO_ICMND_CMPL_RESID_UNDER)
819 819 xfer_len -= icmnd_cmpl->residual;
820 820  
821   - /*
822   - * If queue_full, then try to reduce queue depth for all
823   - * LUNS on the target. Todo: this should be accompanied
824   - * by a periodic queue_depth rampup based on successful
825   - * IO completion.
826   - */
827   - if (icmnd_cmpl->scsi_status == QUEUE_FULL) {
828   - struct scsi_device *t_sdev;
829   - int qd = 0;
830   -
831   - shost_for_each_device(t_sdev, sc->device->host) {
832   - if (t_sdev->id != sc->device->id)
833   - continue;
834   -
835   - if (t_sdev->queue_depth > 1) {
836   - qd = scsi_track_queue_full
837   - (t_sdev,
838   - t_sdev->queue_depth - 1);
839   - if (qd == -1)
840   - qd = t_sdev->host->cmd_per_lun;
841   - shost_printk(KERN_INFO,
842   - fnic->lport->host,
843   - "scsi[%d:%d:%d:%d"
844   - "] queue full detected,"
845   - "new depth = %d\n",
846   - t_sdev->host->host_no,
847   - t_sdev->channel,
848   - t_sdev->id, t_sdev->lun,
849   - t_sdev->queue_depth);
850   - }
851   - }
852   - }
853 821 break;
854 822  
855 823 case FCPIO_TIMEOUT: /* request was timed out */