aboutsummaryrefslogtreecommitdiffstats
path: root/sys/modules/cxgbe/t4_firmware/Makefile
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2017-01-03 21:36:15 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2017-01-03 21:36:15 +0000
commit2604eb9e17c5c98d77281bc5c20b410f877a6b1c (patch)
tree895bd4e1a7bbdedd359347330103d0e5dcbedbe1 /sys/modules/cxgbe/t4_firmware/Makefile
parent68278ec60f11c444e3ada9f337d9d76f791bc7e7 (diff)
downloadsrc-2604eb9e17c5c98d77281bc5c20b410f877a6b1c.tar.gz
src-2604eb9e17c5c98d77281bc5c20b410f877a6b1c.zip
mtx: reduce lock accesses
Instead of spuriously re-reading the lock value, read it once. This change also has a side effect of fixing a performance bug: on failed _mtx_obtain_lock, it was possible that re-read would find the lock is unowned, but in this case the primitive would make a trip through turnstile code. This is diff reduction to a variant which uses atomic_fcmpset. Discussed with: jhb (previous version) Tested by: pho (previous version)
Notes
Notes: svn path=/head/; revision=311172
Diffstat (limited to 'sys/modules/cxgbe/t4_firmware/Makefile')
0 files changed, 0 insertions, 0 deletions