From: Hillf Danton Date: Wed, 1 Dec 2010 00:18:17 +0000 (-0800) Subject: [SCSI] libfc: tune fc_exch_em_alloc() to be O(2) X-Git-Tag: v2.6.38-rc1~27^2~87 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2034c19ce8f8503aa14cb1e763fbfe60316aaa8e;p=pandora-kernel.git [SCSI] libfc: tune fc_exch_em_alloc() to be O(2) For allocating new exch from pool, scanning for free slot in exch array fluctuates when exch pool is close to exhaustion. The fluctuation is smoothed, and the scan looks to be O(2). Signed-off-by: Hillf Danton Signed-off-by: Robert Love Signed-off-by: James Bottomley --- Reading git-diff-tree failed