From: Bart Van Assche Date: Mon, 30 Aug 2010 19:27:36 +0000 (+0000) Subject: IB/srp: Reduce number of BUSY conditions X-Git-Tag: v2.6.37-rc1~95^2^12~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ade400aba9a675b610074d6609658661db07eeb;p=pandora-kernel.git IB/srp: Reduce number of BUSY conditions 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 or equal to SRP_NORMAL_REQ_SQ_SIZE by reducing the number of BUSY responses reported by ib_srp to the SCSI mid-layer. Signed-off-by: Bart Van Assche Signed-off-by: David Dillow Signed-off-by: Roland Dreier --- Reading git-diff-tree failed