HomeFreeBSD

Undo LOCK_PROFILING pessimisation after r313454 and r313455

Description

Undo LOCK_PROFILING pessimisation after r313454 and r313455

With the option used to compile the kernel both sx and rw shared ops would
always go to the slow path which added avoidable overhead even when the
facility is disabled.

Furthermore the increased time spent doing uncontested shared lock acquire
would be bogusly added to total wait time, somewhat skewing the results.

Restore old behaviour of going there only when profiling is enabled.

This change is a no-op for kernels without LOCK_PROFILING (which is the
default).

Details

Provenance
mjgAuthored on
Parents
rS329450: Bump the FreeBSD version after r329383 to indicate that the
Branches
Unknown
Tags
Unknown