Restartable sequences: clear rseq_cs even if non-nested
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sun, 16 Oct 2016 06:16:25 +0000 (08:16 +0200)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 21 Oct 2016 22:28:17 +0000 (18:28 -0400)
commit88833b353c257ba7b6bcb1bcc5a9f0ae388fa25b
treef6500e6112c0827aaf7186fd67eeec3e406505db
parent4c52e7c406b463a605037f707e59a88e43fa36d0
Restartable sequences: clear rseq_cs even if non-nested

We can speed up the user-space fast path by removing the final
"rseq_cs=NULL" assignment at the end of the critical section, since we
check for both upper and lower bounds anyway in the fixup code.

Take care of setting rseq_cs back to NULL even if we are not nested over
an actual rseq critical section.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
kernel/rseq.c
This page took 0.024025 seconds and 5 git commands to generate.