diff options
author | Binoy Jayan <binoy.jayan@linaro.org> | 2017-06-08 12:07:30 +0200 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2017-06-13 03:17:05 +0200 |
commit | 74d2fd488d77ab4ff15a7fe0b3b6900f2382b42b (patch) | |
tree | 9bb026d2c0aa5e98ac219b2754219cf864b78a3c /drivers/scsi/esas2r/esas2r.h | |
parent | scsi: qla2xxx: Fix compile warning (diff) | |
download | linux-74d2fd488d77ab4ff15a7fe0b3b6900f2382b42b.tar.xz linux-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.h | 2 |
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; |