How about update locks?
How about update locks?
Posted Jun 6, 2017 22:14 UTC (Tue) by saffroy (guest, #43999)Parent article: Range reader/writer locks for the kernel
For some reason I'd expect that people would want an API for update locks before range locks. For a definition of update locks, see the "PW" lock mode in https://en.wikipedia.org/wiki/Distributed_lock_manager.
Update locks are typically used in combination with "CR" (aka reader lock) and "EX" (exclusive lock) modes, with an API to atomically convert from update to exclusive. A great use case it when one wants to prepare some kind of structure update privately while letting readers work, and then convert to exclusive and atomically publish the update: this helps minimize the time during which the exclusive lock is held.
Is that kind of lock API discussed?
