Remove $FreeBSD$: one-line sh patternRemove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
Remove $FreeBSD$: two-line .h patternRemove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDThe SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catchup to that fact and revert to their recommended match of
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDThe SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catchup to that fact and revert to their recommended match of BSD-2-Clause.Discussed with: pfgMFC After: 3 daysSponsored by: Netflix
show more ...
tools/uma/smrstress: fix kthread exitBy convention, kernel threads must call kthread_exit() instead ofblindly returning from the thread function. We have some safety measurein fork_exit(), which
tools/uma/smrstress: fix kthread exitBy convention, kernel threads must call kthread_exit() instead ofblindly returning from the thread function. We have some safety measurein fork_exit(), which checks for the P_KPROC p_flag and doeskthread_exit() for kernel thread that forgot to do it itself.But this workaround only works for kernel threads belonging to thekernel process. If a kernel thread is attached to the normal processwith live userspace, and does not call kthread_exit(), then theworkaround is not activated, and for amd64 at least, the return from thethread function/fork_exit() results in the return to userspace with thecopy of frame from the thread that did kthread_add().Practically for smrstress, this destroys the user stack of the stillactive frame in the other thread, which was the caller of kthread_add().Fix it by adding kthread_exit() to the thread function.Reported and tested by: phoReviewed by: markjSponsored by: The FreeBSD FoundationMFC after: 1 weekDifferential revision: https://reviews.freebsd.org/D35999
Fix the smrstress build after r358400.Reported by: pho
smrstress: Add 'publishing' fences to operations on smrs_current.Reported and tested by: andrewReviewed by: jeffSponsored by: The FreeBSD FoundationDifferential revision: https://reviews.freebsd
smrstress: Add 'publishing' fences to operations on smrs_current.Reported and tested by: andrewReviewed by: jeffSponsored by: The FreeBSD FoundationDifferential revision: https://reviews.freebsd.org/D23440
Implement a simple UMA SMR stress testing tool.