Re: [PATCH 3/3 v5] IB/srp: Reduce number of BUSY conditions

2010-08-18 Thread David Dillow
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

[PATCH 3/3 v5] IB/srp: Reduce number of BUSY conditions

2010-08-16 Thread Bart Van Assche
As proposed by the SRP (draft) standard, ib_srp reserves one ring element for SRP_TSK_MGMT requests. This patch makes sure that the SCSI mid-layer never tries to queue more than (SRP request limit) - 1 SCSI commands to ib_srp. This improves performance for targets whose request limit is less than o