aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/ulp/srp/ib_srp.h
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2006-01-30 15:21:21 -0800
committerRoland Dreier <rolandd@cisco.com>2006-01-30 15:21:21 -0800
commit8e9e5f4f5eb1d44ddabfd1ddea4ca4e4244a9ffb (patch)
treeb2f64b85be17ddb169355defe05f9dbf5c97d548 /drivers/infiniband/ulp/srp/ib_srp.h
parentIB/mthca: Relax UAR size check (diff)
downloadlinux-dev-8e9e5f4f5eb1d44ddabfd1ddea4ca4e4244a9ffb.tar.xz
linux-dev-8e9e5f4f5eb1d44ddabfd1ddea4ca4e4244a9ffb.zip
IB/srp: Semaphore to mutex conversion
Convert srp_host->target_mutex from a semaphore to a mutex. Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/ulp/srp/ib_srp.h')
-rw-r--r--drivers/infiniband/ulp/srp/ib_srp.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/infiniband/ulp/srp/ib_srp.h b/drivers/infiniband/ulp/srp/ib_srp.h
index b564f18caf78..4e7727df32f1 100644
--- a/drivers/infiniband/ulp/srp/ib_srp.h
+++ b/drivers/infiniband/ulp/srp/ib_srp.h
@@ -37,8 +37,7 @@
#include <linux/types.h>
#include <linux/list.h>
-
-#include <asm/semaphore.h>
+#include <linux/mutex.h>
#include <scsi/scsi_host.h>
#include <scsi/scsi_cmnd.h>
@@ -85,7 +84,7 @@ struct srp_host {
struct ib_mr *mr;
struct class_device class_dev;
struct list_head target_list;
- struct semaphore target_mutex;
+ struct mutex target_mutex;
struct completion released;
struct list_head list;
};