HomeFreeBSD

Fix locking for VCHI driver by matching sleepable/non-sleepable APIs:

Description

Fix locking for VCHI driver by matching sleepable/non-sleepable APIs:

  • Emulate Linux mutex API using sx(9) locks with only exclusive operations instead of mutex(9), in Linux mutexes are sleepable.
  • Emulate Linux rwlock_t using rwlock(9) instead of sx(9). rwlock_t in Linux are spin locks

Details

Provenance
gonzoAuthored on
Parents
rS290533: - Replace semaphore-base locking with sleep/wait synchronization:
Branches
Unknown
Tags
Unknown