Skip to content

Commit 8a46580

Browse files
compudjKAGA-KOKO
authored andcommitted
rseq/selftests: cleanup: Update comment above rseq_prepare_unload
rseq as it was merged does not have rseq_finish_*() in the user-space selftests anymore. Update the rseq_prepare_unload() helper comment to adapt to this reality. Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: linux-api@vger.kernel.org Cc: Peter Zijlstra <peterz@infradead.org> Cc: "Paul E . McKenney" <paulmck@linux.vnet.ibm.com> Cc: Boqun Feng <boqun.feng@gmail.com> Cc: Andy Lutomirski <luto@amacapital.net> Cc: Dave Watson <davejwatson@fb.com> Cc: Paul Turner <pjt@google.com> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Russell King <linux@arm.linux.org.uk> Cc: "H . Peter Anvin" <hpa@zytor.com> Cc: Andi Kleen <andi@firstfloor.org> Cc: Chris Lameter <cl@linux.com> Cc: Ben Maurer <bmaurer@fb.com> Cc: Steven Rostedt <rostedt@goodmis.org> Cc: Josh Triplett <josh@joshtriplett.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Catalin Marinas <catalin.marinas@arm.com> Cc: Will Deacon <will.deacon@arm.com> Cc: Michael Kerrisk <mtk.manpages@gmail.com> Cc: Joel Fernandes <joelaf@google.com> Cc: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> Cc: "H. Peter Anvin" <hpa@zytor.com> Link: https://lkml.kernel.org/r/20180709195155.7654-7-mathieu.desnoyers@efficios.com
1 parent 4f4c0ac commit 8a46580

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

  • tools/testing/selftests/rseq

‎tools/testing/selftests/rseq/rseq.h‎

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -143,12 +143,13 @@ static inline void rseq_clear_rseq_cs(void)
143143
}
144144

145145
/*
146-
* rseq_prepare_unload() should be invoked by each thread using rseq_finish*()
147-
* at least once between their last rseq_finish*() and library unload of the
148-
* library defining the rseq critical section (struct rseq_cs). This also
149-
* applies to use of rseq in code generated by JIT: rseq_prepare_unload()
150-
* should be invoked at least once by each thread using rseq_finish*() before
151-
* reclaim of the memory holding the struct rseq_cs.
146+
* rseq_prepare_unload() should be invoked by each thread executing a rseq
147+
* critical section at least once between their last critical section and
148+
* library unload of the library defining the rseq critical section
149+
* (struct rseq_cs). This also applies to use of rseq in code generated by
150+
* JIT: rseq_prepare_unload() should be invoked at least once by each
151+
* thread executing a rseq critical section before reclaim of the memory
152+
* holding the struct rseq_cs.
152153
*/
153154
static inline void rseq_prepare_unload(void)
154155
{

0 commit comments

Comments
 (0)