linux/drivers/scsi/esas2r
Peter Zijlstra 48380368de Change DEFINE_SEMAPHORE() to take a number argument
Fundamentally semaphores are a counted primitive, but
DEFINE_SEMAPHORE() does not expose this and explicitly creates a
binary semaphore.

Change DEFINE_SEMAPHORE() to take a number argument and use that in the
few places that open-coded it using __SEMAPHORE_INITIALIZER().

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
[mcgrof: add some tribal knowledge about why some folks prefer
 binary sempahores over mutexes]
Reviewed-by: Sergey Senozhatsky <senozhatsky@chromium.org>
Reviewed-by: Davidlohr Bueso <dave@stgolabs.net>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
2023-04-18 11:15:24 -07:00
..
atioctl.h scsi: esas2r: Use flex array destination for memcpy() 2022-09-06 22:24:37 -04:00
atvda.h
esas2r_disc.c scsi: esas2r: esas2r_disc: Place brackets around a potentially empty if() 2020-11-10 22:27:46 -05:00
esas2r_flash.c scsi: esas2r: Fix typo in comment 2022-05-23 23:24:09 -04:00
esas2r_init.c scsi: esas2r: Use generic power management 2020-11-25 23:14:31 -05:00
esas2r_int.c scsi: esas2r: esas2r_int: Add brackets around potentially empty if()s 2020-11-10 22:27:47 -05:00
esas2r_io.c
esas2r_ioctl.c Change DEFINE_SEMAPHORE() to take a number argument 2023-04-18 11:15:24 -07:00
esas2r_log.c scsi: esas2r: Supply __printf(x, y) formatting for esas2r_log_master() 2021-03-15 22:28:58 -04:00
esas2r_log.h
esas2r_main.c scsi: esas2r: Introduce scsi_template_proc_dir() 2022-10-18 03:17:09 +00:00
esas2r_targdb.c
esas2r_vda.c
esas2r.h scsi: esas2r: Use generic power management 2020-11-25 23:14:31 -05:00
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile