commit | 2034c19ce8f8503aa14cb1e763fbfe60316aaa8e | [log] [tgz] |
---|---|---|
author | Hillf Danton <dhillf@gmail.com> | Tue Nov 30 16:18:17 2010 -0800 |
committer | James Bottomley <James.Bottomley@suse.de> | Tue Dec 21 12:24:19 2010 -0600 |
tree | a041e219fe6342d6268d71581d94c02073f681f6 | |
parent | 8236554a27af870ecd1cd588d9558ccdc212037b [diff] |
[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 <dhillf@gmail.com> Signed-off-by: Robert Love <robert.w.love@intel.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>