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>
This commit is contained in:
committed by
Roland Dreier
parent
cbd2981a97
commit
8e9e5f4f5e
@@ -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;
|
||||
};
|
||||
|
Reference in New Issue
Block a user