diff options
author | Ingo Molnar <mingo@elte.hu> | 2006-01-30 15:21:21 -0800 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2006-01-30 15:21:21 -0800 |
commit | 8e9e5f4f5eb1d44ddabfd1ddea4ca4e4244a9ffb (patch) | |
tree | b2f64b85be17ddb169355defe05f9dbf5c97d548 /drivers/infiniband/ulp/srp/ib_srp.h | |
parent | cbd2981a97cb628431a987a8abd1731c74bcc32e (diff) | |
download | op-kernel-dev-8e9e5f4f5eb1d44ddabfd1ddea4ca4e4244a9ffb.zip op-kernel-dev-8e9e5f4f5eb1d44ddabfd1ddea4ca4e4244a9ffb.tar.gz |
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.h | 5 |
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 b564f18..4e7727d 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; }; |