]> git.baikalelectronics.ru Git - kernel.git/commit
drivers/staging/exfat: Replace binary semaphores for mutexes
authorDavidlohr Bueso <dave@stgolabs.net>
Wed, 30 Oct 2019 14:49:16 +0000 (07:49 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 1 Nov 2019 09:50:37 +0000 (10:50 +0100)
commit6b73e801370bd28877f0693d3f34a06581051b68
tree523e18d27b29d5cba46232134b034c7af156a3ff
parent3eaf47d3c42c39dde6e44dea20727a51276f564e
drivers/staging/exfat: Replace binary semaphores for mutexes

At a slight footprint cost (24 vs 32 bytes), mutexes are more optimal
than semaphores; it's also a nicer interface for mutual exclusion,
which is why they are encouraged over binary semaphores, when possible.

For both v_sem and z_sem, their semantics imply traditional lock
ownership; that is, the lock owner is the same for both lock/unlock
operations. Therefore it is safe to convert.

Signed-off-by: Davidlohr Bueso <dave@stgolabs.net>
Acked-by: Valdis Kletnieks <valdis.kletnieks@vt.edu>
Link: https://lore.kernel.org/r/20191030144916.10802-1-dave@stgolabs.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/exfat/exfat.h
drivers/staging/exfat/exfat_super.c