···13081308 * the request was not marked fast fail. Note that above,13091309 * even if the request is marked fast fail, we still requeue13101310 * for queue congestion conditions (QUEUE_FULL or BUSY) */13111311- if ((++scmd->retries) < scmd->allowed 13111311+ if ((++scmd->retries) <= scmd->allowed13121312 && !blk_noretry_request(scmd->request)) {13131313 return NEEDS_RETRY;13141314 } else {···14331433 list_del_init(&scmd->eh_entry);14341434 if (scsi_device_online(scmd->device) &&14351435 !blk_noretry_request(scmd->request) &&14361436- (++scmd->retries < scmd->allowed)) {14361436+ (++scmd->retries <= scmd->allowed)) {14371437 SCSI_LOG_ERROR_RECOVERY(3, printk("%s: flush"14381438 " retry cmd: %p\n",14391439 current->comm,
+1-1
drivers/scsi/scsi_lib.c
···14981498static void scsi_softirq_done(struct request *rq)14991499{15001500 struct scsi_cmnd *cmd = rq->completion_data;15011501- unsigned long wait_for = cmd->allowed * cmd->timeout_per_command;15011501+ unsigned long wait_for = (cmd->allowed + 1) * cmd->timeout_per_command;15021502 int disposition;1503150315041504 INIT_LIST_HEAD(&cmd->eh_entry);
+14-2
drivers/scsi/scsi_scan.c
···752752753753 transport_configure_device(&sdev->sdev_gendev);754754755755- if (sdev->host->hostt->slave_configure)756756- sdev->host->hostt->slave_configure(sdev);755755+ if (sdev->host->hostt->slave_configure) {756756+ int ret = sdev->host->hostt->slave_configure(sdev);757757+ if (ret) {758758+ /*759759+ * if LLDD reports slave not present, don't clutter760760+ * console with alloc failure messages761761+ */762762+ if (ret != -ENXIO) {763763+ sdev_printk(KERN_ERR, sdev,764764+ "failed to configure device\n");765765+ }766766+ return SCSI_SCAN_NO_RESPONSE;767767+ }768768+ }757769758770 /*759771 * Ok, the device is now all set up, we can
+1-2
drivers/scsi/scsi_transport_fc.c
···14981498 }1499149915001500 /* Search the bindings array */15011501- if (likely((ids->roles & FC_RPORT_ROLE_FCP_TARGET) &&15021502- (fc_host_tgtid_bind_type(shost) != FC_TGTID_BIND_NONE))) {15011501+ if (fc_host_tgtid_bind_type(shost) != FC_TGTID_BIND_NONE) {1503150215041503 /* search for a matching consistent binding */15051504
+1-1
drivers/scsi/sg.c
···2162216221632163 srp->res_used = 1;21642164 SCSI_LOG_TIMEOUT(4, printk("sg_link_reserve: size=%d\n", size));21652165- rem = size = (size + 1) & (~1); /* round to even for aha1542 */21652165+ rem = size;2166216621672167 for (k = 0; k < rsv_schp->k_use_sg; ++k, ++sg) {21682168 num = sg->length;