SVNews r330418

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

2018-03-04 22:01:23 - r330418 by mjg (Mateusz Guzik)

Complete list of files affected by revision r330418:

(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_mutex.c  

Commit message:

mtx: tidy up recursion handling in thread lock

Normally after grabbing the lock it has to be verified we got the right one
to begin with. However, if we are recursing, it must not change thus the
check can be avoided. In particular this avoids a lock read for non-recursing
case which found out the lock was changed.

While here avoid an irq trip of this happens.

Tested by: pho (previous version)


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

Page generated in 5 ms, 1 file printed. Current time is 2018-03-24 11:41:06. All times are in UTC/GMT.