diff options
author | Davidlohr Bueso <[email protected]> | 2019-11-01 11:53:32 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2019-11-02 11:41:36 +0100 |
commit | 74179976b085398f5ad57b5d8aec8222e08e39dc (patch) | |
tree | b75f65e6e5c00ed44fa644e5ff5272860567f2e1 /tools/perf/scripts/python/compaction-times.py | |
parent | 8823d99080ba59598f00b7e50b281c46ddd39d56 (diff) |
drivers/staging/exfat: Replace more binary semaphores with 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.
There is also lockdep support.
For both f_sem and b_sem, their semantics imply traditional lock
ownership; that is, the lock owner is the same for both lock/unlock
operations and not under irq contexts (ie for trylock/unlock scenarios).
Therefore it is safe to convert.
Signed-off-by: Davidlohr Bueso <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/compaction-times.py')
0 files changed, 0 insertions, 0 deletions