Mateusz Guzik 7d853f62bf lockf: slightly depessimize
1. check if P_ADVLOCK is already set and if so, don't lock to set it
(stolen from DragonFly)
2. when trying for fast path unlock, check that we are doing unlock
first instead of taking the interlock for no reason (e.g. if we want
to *lock*). whilere make it more likely that falling fast path will
not take the interlock either by checking for state

Note the code is severely pessimized both single- and multithreaded.
2018-04-22 09:30:07 +00:00
..
2018-04-13 20:30:49 +00:00
2017-11-30 20:33:45 +00:00
2018-01-03 00:56:30 +00:00
2018-04-22 09:30:07 +00:00
2018-01-03 00:56:30 +00:00
2018-04-22 09:30:07 +00:00
2018-03-20 15:51:05 +00:00
2017-12-13 16:30:39 +00:00
2018-02-23 18:26:31 +00:00
2017-08-07 14:09:57 +00:00
2017-11-30 20:33:45 +00:00
2018-04-08 16:34:10 +00:00
2018-04-13 20:30:49 +00:00
2018-03-27 15:20:03 +00:00
2018-01-22 02:26:10 +00:00
2017-12-01 22:51:02 +00:00