[PATCH RFC 0/2] locking: Fix ww_mutex algorithm inconsistency.
thellstrom at vmware.com
Fri May 25 12:38:53 UTC 2018
The algorithm used for linux Wound/Wait mutexes, is actually not Wound/Wait
but Wait/Die. See for example
Rather than renaming them across the tree to something like Wait/Die mutexes or
Deadlock Avoidance mutexes, this patch set implements also the Wound/Wait
algorithm It shouldn't touch the binary ordinary mutex paths when compiled
We use Wound/Wait for the modeset locks which in theory may benefit slightly
from Wound/Wait rather than Wait/Die, but Wait/Die is actually superior for
larger number of simultaneous contending transactions so we keep the original
implementation as a choice, and don't touch the algorithm used by the
Performance- and functional testing has been done using
Using WW_BUILTIN and 4 and 16 competing threads.
Another option is of course to ignore the the naming / algorithm inconsistency.
More information about the dri-devel