SVNews r327399

NOTE: This service is experimental and subject to change! Use at your own risk!

2017-12-31 00:47:04 - r327399 by mjg (Mateusz Guzik)

Complete list of files affected by revision r327399:

(Note: At the moment, these links point to ViewVC on They are probably slow. Do not overuse.)

  History   Contents   Diff   MODIFY   /head/sys/kern/kern_rwlock.c  
  History   Contents   Diff   MODIFY   /head/sys/kern/kern_sx.c  

Commit message:

locks: re-check the reason to go to sleep after locking sleepq/turnstile

In both rw and sx locks we always go to sleep if the lock owner is not

We do spin for some time if the lock is read-locked.

However, if we decide to go to sleep due to the lock owner being off cpu
and after sleepq/turnstile gets acquired the lock is read-locked, we should
fallback to the aforementioned wait.


Powered by Python FreeBSD support by secnetix GmbH & Co. KG

Page generated in 38 ms, 2 files printed. Current time is 2018-04-20 14:28:17. All times are in UTC/GMT.