IB/srp: reduce local coverage for command submission and EH
authorBart Van Assche <bvanassche@acm.org>
Fri, 26 Nov 2010 19:37:47 +0000 (14:37 -0500)
committerDavid Dillow <dillowda@ornl.gov>
Mon, 10 Jan 2011 20:44:49 +0000 (15:44 -0500)
We only need locks to protect our lists and number of credits available.
By pre-consuming the credit for the request, we can reduce our lock
coverage to just those areas. If we don't actually send the request,
we'll need to put the credit back into the pool.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
[ broken out and small cleanups by David Dillow ]
Signed-off-by: David Dillow <dillowda@ornl.gov>

No differences found