diff options
author | Matthew Wilcox <matthew@wil.cx> | 2006-06-17 20:37:30 -0700 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2006-06-17 20:37:30 -0700 |
commit | b3589fd49067bab9fe0c60430860e6befbd5ba37 (patch) | |
tree | be054dba4fd5d39e4af03d18e1d57d3b88033ca7 /drivers/infiniband/ulp/srp/ib_srp.h | |
parent | IB/srp: Get rid of unneeded use of list_for_each_entry_safe() (diff) | |
download | linux-dev-b3589fd49067bab9fe0c60430860e6befbd5ba37.tar.xz linux-dev-b3589fd49067bab9fe0c60430860e6befbd5ba37.zip |
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>
Diffstat (limited to '')
-rw-r--r-- | drivers/infiniband/ulp/srp/ib_srp.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/ulp/srp/ib_srp.h b/drivers/infiniband/ulp/srp/ib_srp.h index 5ecda4ad8906..c071c3032700 100644 --- a/drivers/infiniband/ulp/srp/ib_srp.h +++ b/drivers/infiniband/ulp/srp/ib_srp.h @@ -99,7 +99,7 @@ struct srp_host { u8 port; struct class_device class_dev; struct list_head target_list; - struct mutex target_mutex; + spinlock_t target_lock; struct completion released; struct list_head list; }; |