]> err.no Git - linux-2.6/commit
IB/srp: Change target_mutex to a spinlock
authorMatthew Wilcox <matthew@wil.cx>
Sun, 18 Jun 2006 03:37:30 +0000 (20:37 -0700)
committerRoland Dreier <rolandd@cisco.com>
Sun, 18 Jun 2006 03:37:30 +0000 (20:37 -0700)
commitb3589fd49067bab9fe0c60430860e6befbd5ba37
treebe054dba4fd5d39e4af03d18e1d57d3b88033ca7
parent549c5fc2c8149498118f2494a1b6a4938ca05985
IB/srp: Change target_mutex to a spinlock

The SRP driver never sleeps while holding target_mutex, and it's just
used to protect some simple list operations, so hold times will be
short.  So just convert it to a spinlock, which is smaller and faster.

Signed-off-by: Matthew Wilcox <matthew@wil.cx>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/ulp/srp/ib_srp.c
drivers/infiniband/ulp/srp/ib_srp.h