All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sasha Levin <sashal@kernel.org>
To: stable@vger.kernel.org, chenridong@huaweicloud.com
Cc: Sasha Levin <sashal@kernel.org>
Subject: Re: [PATCH 6.6 1/5] sched/core: Remove ifdeffery for saved_state
Date: Mon, 28 Jul 2025 08:45:41 -0400	[thread overview]
Message-ID: <1753684394-c86c76a8@stable.kernel.org> (raw)
In-Reply-To: <20250728025444.34009-2-chenridong@huaweicloud.com>

[ Sasha's backport helper bot ]

Hi,

Summary of potential issues:
❌ Build failures detected

The upstream commit SHA1 provided is correct: fbaa6a181a4b1886cbf4214abdf9a2df68471510

WARNING: Author mismatch between patch and upstream commit:
Backport author: Chen Ridong <chenridong@huaweicloud.com>
Commit author: Elliot Berman <quic_eberman@quicinc.com>

Status in newer kernel trees:
6.15.y | Present (exact SHA1)
6.12.y | Present (exact SHA1)

Note: The patch differs from the upstream commit:
---
1:  fbaa6a181a4b ! 1:  b72e2a437525 sched/core: Remove ifdeffery for saved_state
    @@ Metadata
      ## Commit message ##
         sched/core: Remove ifdeffery for saved_state
     
    +    [ Upstream commit fbaa6a181a4b1886cbf4214abdf9a2df68471510 ]
    +
         In preparation for freezer to also use saved_state, remove the
         CONFIG_PREEMPT_RT compilation guard around saved_state.
     
    @@ Commit message
         Signed-off-by: Elliot Berman <quic_eberman@quicinc.com>
         Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
         Signed-off-by: Ingo Molnar <mingo@kernel.org>
    +    Signed-off-by: Chen Ridong <chenridong@huawei.com>
     
      ## include/linux/sched.h ##
     @@ include/linux/sched.h: struct task_struct {
    @@ kernel/sched/core.c: int __task_state_match(struct task_struct *p, unsigned int
      int task_state_match(struct task_struct *p, unsigned int state)
      {
     -#ifdef CONFIG_PREEMPT_RT
    + 	int match;
    + 
      	/*
    - 	 * Serialize against current_save_and_set_rtlock_wait_state() and
    - 	 * current_restore_rtlock_saved_state().
    - 	 */
    - 	guard(raw_spinlock_irq)(&p->pi_lock);
    +@@ kernel/sched/core.c: int task_state_match(struct task_struct *p, unsigned int state)
    + 	raw_spin_unlock_irq(&p->pi_lock);
    + 
    + 	return match;
    +-#else
    +-	return __task_state_match(p, state);
     -#endif
    - 	return __task_state_match(p, state);
      }
      
    + /*
     @@ kernel/sched/core.c: bool ttwu_state_match(struct task_struct *p, unsigned int state, int *success)
      
      	*success = !!(match = __task_state_match(p, state));

---

Results of testing on various branches:

| Branch                    | Patch Apply | Build Test |
|---------------------------|-------------|------------|
| 6.6                       | Success     | Failed     |

  reply	other threads:[~2025-07-28 12:45 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20250721125251.814862-1-sashal@kernel.org>
     [not found] ` <1bafc8a024da4a95b28c02430f3d0c9d@huawei.com>
2025-07-22  1:29   ` Patch "Revert "cgroup_freezer: cgroup_freezing: Check if not frozen"" has been added to the 6.15-stable tree Chen Ridong
2025-07-22 12:18     ` Greg KH
2025-07-22 12:25       ` Chen Ridong
2025-07-22 12:38         ` Greg KH
2025-07-23  1:01           ` Chen Ridong
2025-07-23  5:06             ` Greg KH
2025-07-24  9:38               ` Chen Ridong
2025-07-24  9:43                 ` Greg KH
2025-07-28  2:41                   ` [PATCH 6.6 0/5] [Backport] sched,freezer: Remove unnecessary warning in __thaw_task Chen Ridong
2025-07-28  2:41                     ` [PATCH 6.6 1/5] sched/core: Remove ifdeffery for saved_state Chen Ridong
2025-07-28  2:41                     ` [PATCH 6.6 2/5] freezer,sched: Use saved_state to reduce some spurious wakeups Chen Ridong
2025-07-28  2:41                     ` [PATCH 6.6 3/5] freezer,sched: Do not restore saved_state of a thawed task Chen Ridong
2025-07-28  2:41                     ` [PATCH 6.6 4/5] freezer,sched: Clean saved_state when restoring it during thaw Chen Ridong
2025-07-28  2:41                     ` [PATCH 6.6 5/5] sched,freezer: Remove unnecessary warning in __thaw_task Chen Ridong
2025-07-28  3:11                     ` [PATCH 6.6 0/5] [Backport] " Chen Ridong
2025-07-28  2:54                   ` Chen Ridong
2025-07-28  2:54                     ` [PATCH 6.6 1/5] sched/core: Remove ifdeffery for saved_state Chen Ridong
2025-07-28 12:45                       ` Sasha Levin [this message]
2025-07-28  2:54                     ` [PATCH 6.6 2/5] freezer,sched: Use saved_state to reduce some spurious wakeups Chen Ridong
2025-07-28 12:45                       ` Sasha Levin
2025-07-28  2:54                     ` [PATCH 6.6 3/5] freezer,sched: Do not restore saved_state of a thawed task Chen Ridong
2025-07-28 12:49                       ` Sasha Levin
2025-07-28  2:54                     ` [PATCH 6.6 4/5] freezer,sched: Clean saved_state when restoring it during thaw Chen Ridong
2025-07-28 12:45                       ` Sasha Levin
2025-07-28  2:54                     ` [PATCH 6.6 5/5] sched,freezer: Remove unnecessary warning in __thaw_task Chen Ridong
2025-07-28 12:45                       ` Sasha Levin
2025-07-29 13:22                   ` Patch "Revert "cgroup_freezer: cgroup_freezing: Check if not frozen"" has been added to the 6.15-stable tree Chen Ridong
2025-07-29 14:33                     ` Greg KH
2025-07-31 12:01                       ` Chen Ridong
2025-07-31 12:13                         ` Greg KH
2025-07-31 12:21                           ` Chen Ridong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1753684394-c86c76a8@stable.kernel.org \
    --to=sashal@kernel.org \
    --cc=chenridong@huaweicloud.com \
    --cc=stable@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.