summaryrefslogtreecommitdiff
path: root/drivers/infiniband/ulp/srp/ib_srp.h
diff options
context:
space:
mode:
authorBart Van Assche <bvanassche@acm.org>2010-11-26 15:08:38 -0500
committerDavid Dillow <dillowda@ornl.gov>2011-01-10 15:44:50 -0500
commite9684678221441f886b4d7c74f8770bb0981737a (patch)
tree76ed83fb7dd41c84c2b8e08b785a802e99c6e790 /drivers/infiniband/ulp/srp/ib_srp.h
parent94a9174c630c8465ed9e97ecd242993429930c05 (diff)
downloadlinux-next-e9684678221441f886b4d7c74f8770bb0981737a.tar.gz
IB/srp: stop sharing the host lock with SCSI
We don't need protection against the SCSI stack, so use our own lock to allow parallel progress on separate CPUs. 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>
Diffstat (limited to 'drivers/infiniband/ulp/srp/ib_srp.h')
-rw-r--r--drivers/infiniband/ulp/srp/ib_srp.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/infiniband/ulp/srp/ib_srp.h b/drivers/infiniband/ulp/srp/ib_srp.h
index 81686eee7e62..acb435d3c1e3 100644
--- a/drivers/infiniband/ulp/srp/ib_srp.h
+++ b/drivers/infiniband/ulp/srp/ib_srp.h
@@ -144,6 +144,8 @@ struct srp_target_port {
struct srp_iu *rx_ring[SRP_RQ_SIZE];
+ spinlock_t lock;
+
struct list_head free_tx;
struct srp_iu *tx_ring[SRP_SQ_SIZE];