aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/esas2r/esas2r.h
diff options
context:
space:
mode:
authorBinoy Jayan <binoy.jayan@linaro.org>2017-06-08 15:37:30 +0530
committerMartin K. Petersen <martin.petersen@oracle.com>2017-06-12 21:17:05 -0400
commit74d2fd488d77ab4ff15a7fe0b3b6900f2382b42b (patch)
tree9bb026d2c0aa5e98ac219b2754219cf864b78a3c /drivers/scsi/esas2r/esas2r.h
parentscsi: qla2xxx: Fix compile warning (diff)
downloadlinux-dev-74d2fd488d77ab4ff15a7fe0b3b6900f2382b42b.tar.xz
linux-dev-74d2fd488d77ab4ff15a7fe0b3b6900f2382b42b.zip
scsi: esas2r: Replace semaphore fm_api_semaphore with mutex
The semaphore 'fm_api_semaphore' is used as a simple mutex, so it should be written as one. Semaphores are going away in the future. Signed-off-by: Binoy Jayan <binoy.jayan@linaro.org> Reviewed-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/esas2r/esas2r.h')
-rw-r--r--drivers/scsi/esas2r/esas2r.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/esas2r/esas2r.h b/drivers/scsi/esas2r/esas2r.h
index b6030e3edd01..c5013de964e6 100644
--- a/drivers/scsi/esas2r/esas2r.h
+++ b/drivers/scsi/esas2r/esas2r.h
@@ -945,7 +945,7 @@ struct esas2r_adapter {
struct list_head vrq_mds_head;
struct esas2r_mem_desc *vrq_mds;
int num_vrqs;
- struct semaphore fm_api_semaphore;
+ struct mutex fm_api_mutex;
struct semaphore fs_api_semaphore;
struct semaphore nvram_semaphore;
struct atto_ioctl *local_atto_ioctl;