]> git.baikalelectronics.ru Git - kernel.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)
commitdd202fa2f045f0ab394742a328bbb3be67f9b0f2
tree754db154ad76e44b5ecc6da71097a6f1c096ec6f
parent031ed737517592fbf4f3460071a942eb41f00500
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