On Mon, 2010-08-16 at 20:55 +0200, Bart Van Assche wrote: > - target->scsi_host->can_queue = min(target->req_lim, > - > target->scsi_host->can_queue); > + /* > + * Set can_queue such that the SCSI mid-layer > + * never causes __srp_get_tx_iu() to fail. > + */ > + target->scsi_host->can_queue > + = min(target->req_lim - SRP_TASK_MGMT_SQ_SIZE, > + target->scsi_host->can_queue);
/* * Reserve credits for task management so we don't * needlessly bounce requests back to the SCSI mid-layer */ -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
