Module Name: src Committed By: ozaki-r Date: Fri Feb 16 07:11:50 UTC 2018
Modified Files: src/sys/sys: lwp.h Log Message: Add missing barriers to curlwp_bind and curlwp_bindx The barriers prevent the instruction of setting/clearing the LP_BOUND flag from reordering over where we want to prevent LWP migrations. Note that the fix doesn't mean that there was a race condition. For now the API is used only for psref and the combination use of them doesn't need the barriers(*). (*) https://mail-index.netbsd.org/tech-kern/2018/02/15/msg023101.html Pointed out by Mateusz Guzik To generate a diff of this commit: cvs rdiff -u -r1.177 -r1.178 src/sys/sys/lwp.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.