]> git.karo-electronics.de Git - linux-beck.git/commit
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)
commit76c75b258f1fe6abac6af2356989ad4d6518886e
tree754db154ad76e44b5ecc6da71097a6f1c096ec6f
parent536ae14e7588e85203d4b4147c041309be5b3efb
IB/srp: reduce local coverage for command submission and EH

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>
drivers/infiniband/ulp/srp/ib_srp.c
drivers/infiniband/ulp/srp/ib_srp.h