Re: [RFC 3/8] IB/srp: allow lockless work posting

2010-12-27 Thread David Dillow
On Mon, 2010-12-27 at 16:37 +0100, Bart Van Assche wrote: On Thu, Dec 23, 2010 at 10:31 PM, David Dillow dillo...@ornl.gov wrote: [ ... ] @@ -876,7 +876,7 @@ static int __srp_post_send(struct srp_target_port *target, ret = ib_post_send(target-qp, wr, bad_wr); if (!ret)

[RFC 3/8] IB/srp: allow lockless work posting

2010-12-23 Thread David Dillow
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