* [PATCH] rseq: Delete duplicate if statement in rseq_virt_userspace_exit()
@ 2025-11-18 10:52 Dan Carpenter
2025-11-18 14:57 ` [tip: core/rseq] " tip-bot2 for Dan Carpenter
2025-11-18 14:58 ` [PATCH] " Thomas Gleixner
0 siblings, 2 replies; 3+ messages in thread
From: Dan Carpenter @ 2025-11-18 10:52 UTC (permalink / raw)
To: Thomas Gleixner
Cc: Peter Zijlstra (Intel), Ingo Molnar, Simon Schuster, linux-kernel,
kernel-janitors
This if statement is indented weirdly. It's a duplicate and doesn't
affect runtime (beyond wasting a little time). Delete it.
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
---
This was introduced in commit 32034df66b5f ("rseq: Switch to TIF_RSEQ if
supported") but it doesn't cause a bug, so there is no Fixes tag.
include/linux/rseq.h | 1 -
1 file changed, 1 deletion(-)
diff --git a/include/linux/rseq.h b/include/linux/rseq.h
index b5e4803c4ebe..bf8a6bf315f3 100644
--- a/include/linux/rseq.h
+++ b/include/linux/rseq.h
@@ -126,7 +126,6 @@ static inline void rseq_force_update(void)
*/
static inline void rseq_virt_userspace_exit(void)
{
- if (current->rseq.event.sched_switch)
/*
* The generic optimization for deferring RSEQ updates until the next
* exit relies on having a dedicated TIF_RSEQ.
--
2.51.0
^ permalink raw reply related [flat|nested] 3+ messages in thread* [tip: core/rseq] rseq: Delete duplicate if statement in rseq_virt_userspace_exit()
2025-11-18 10:52 [PATCH] rseq: Delete duplicate if statement in rseq_virt_userspace_exit() Dan Carpenter
@ 2025-11-18 14:57 ` tip-bot2 for Dan Carpenter
2025-11-18 14:58 ` [PATCH] " Thomas Gleixner
1 sibling, 0 replies; 3+ messages in thread
From: tip-bot2 for Dan Carpenter @ 2025-11-18 14:57 UTC (permalink / raw)
To: linux-tip-commits; +Cc: Dan Carpenter, Thomas Gleixner, x86, linux-kernel
The following commit has been merged into the core/rseq branch of tip:
Commit-ID: 80adaccf0e1c8c8fff44be2d959f6dba80af0491
Gitweb: https://git.kernel.org/tip/80adaccf0e1c8c8fff44be2d959f6dba80af0491
Author: Dan Carpenter <dan.carpenter@linaro.org>
AuthorDate: Tue, 18 Nov 2025 13:52:13 +03:00
Committer: Thomas Gleixner <tglx@linutronix.de>
CommitterDate: Tue, 18 Nov 2025 15:56:55 +01:00
rseq: Delete duplicate if statement in rseq_virt_userspace_exit()
This if statement is indented weirdly. It's a duplicate and doesn't
affect runtime (beyond wasting a little time). Delete it.
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://patch.msgid.link/aRxP3YcwscrP1BU_@stanley.mountain
---
include/linux/rseq.h | 1 -
1 file changed, 1 deletion(-)
diff --git a/include/linux/rseq.h b/include/linux/rseq.h
index b5e4803..bf8a6bf 100644
--- a/include/linux/rseq.h
+++ b/include/linux/rseq.h
@@ -126,7 +126,6 @@ static inline void rseq_force_update(void)
*/
static inline void rseq_virt_userspace_exit(void)
{
- if (current->rseq.event.sched_switch)
/*
* The generic optimization for deferring RSEQ updates until the next
* exit relies on having a dedicated TIF_RSEQ.
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] rseq: Delete duplicate if statement in rseq_virt_userspace_exit()
2025-11-18 10:52 [PATCH] rseq: Delete duplicate if statement in rseq_virt_userspace_exit() Dan Carpenter
2025-11-18 14:57 ` [tip: core/rseq] " tip-bot2 for Dan Carpenter
@ 2025-11-18 14:58 ` Thomas Gleixner
1 sibling, 0 replies; 3+ messages in thread
From: Thomas Gleixner @ 2025-11-18 14:58 UTC (permalink / raw)
To: Dan Carpenter
Cc: Peter Zijlstra (Intel), Ingo Molnar, Simon Schuster, linux-kernel,
kernel-janitors
On Tue, Nov 18 2025 at 13:52, Dan Carpenter wrote:
> This if statement is indented weirdly. It's a duplicate and doesn't
> affect runtime (beyond wasting a little time). Delete it.
It's actually optimized out by the compiler in both cases, but yes
that's an odd one and likely a reject fixup artifact.
Thanks for detecting it!
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-11-18 14:58 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-18 10:52 [PATCH] rseq: Delete duplicate if statement in rseq_virt_userspace_exit() Dan Carpenter
2025-11-18 14:57 ` [tip: core/rseq] " tip-bot2 for Dan Carpenter
2025-11-18 14:58 ` [PATCH] " Thomas Gleixner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox