From: Bart Van Assche Date: Fri, 26 Nov 2010 18:22:48 +0000 (-0500) Subject: IB/srp: allow lockless work posting X-Git-Tag: v2.6.38-rc1~406^2^8~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dcb4cb85f4b7caac9769bce464fef16306a4758c;p=pandora-kernel.git IB/srp: allow lockless work posting Only one CPU at a time will own an RX IU, so using the address of the IU as the work request cookie allows us to avoid taking a lock. We can similarly prepare the TX path for lockless posting by moving the free TX IUs to a list. This also removes the requirement that the queue sizes be a power of 2. Signed-off-by: Bart Van Assche [ broken out, small cleanups, and modified to avoid needing an extra field in the IU by David Dillow] Signed-off-by: David Dillow --- Reading git-diff-tree failed