HomeFreeBSD

sx: fix adaptive spinning broken in r327397

Description

sx: fix adaptive spinning broken in r327397

The condition was flipped.

In particular heavy multithreaded kernel builds on zfs started suffering
due to nested sx locks.

For instance make -s -j 128 buildkernel:

before: 3326.67s user 1269.62s system 6981% cpu 1:05.84 total
after: 3365.55s user 911.27s system 6871% cpu 1:02.24 total

ps.

  .-'---`-.			      .-'---`-.
,'          `.		    ,'          `.
|             \		    |             \
|              \		    |              \
\           _  \		    \           _  \
,\  _    ,'-,/-)\		    ,\  _    ,'-,/-)\
( * \ \,' ,' ,'-)		    ( * \ \,' ,' ,'-)
 `._,)     -',-')		     `._,)     -',-')
   \/         ''/		       \/         ''/
    )        / /		        )        / /
   /       ,'-'		       /       ,'-'

Details

Provenance
mjgAuthored on
Parents
rS330293: dtb/allwinner: Build sun8i-h3-nanopi-m1-plus.dts
Branches
Unknown
Tags
Unknown