The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Oleg Nesterov <oleg@redhat.com>
To: Zhan Xusheng <zhanxusheng1024@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>,
	Andrew Morton <akpm@linux-foundation.org>,
	Tejun Heo <tj@kernel.org>, Ingo Molnar <mingo@kernel.org>,
	linux-kernel@vger.kernel.org,
	Zhan Xusheng <zhanxusheng@xiaomi.com>
Subject: Re: [PATCH] sched: Remove unused tryget_task_struct()
Date: Wed, 8 Jul 2026 16:26:07 +0200	[thread overview]
Message-ID: <ak5d_w2Ty-LYi-Mf@redhat.com> (raw)
In-Reply-To: <20260708023011.652637-1-zhanxusheng@xiaomi.com>

On 07/08, Zhan Xusheng wrote:
>
> tryget_task_struct() was added for sched_ext by commit a8532fac7b5d
> ("sched_ext: TASK_DEAD tasks must be switched into SCX on ops_enable").
> All of its users in sched_ext were subsequently converted to
> get_task_struct() by commit fbe3fb103596 ("sched_ext: Replace
> tryget_task_struct() with get_task_struct()"), leaving the helper with
> no callers.
>
> Remove the now-unused helper.  No functional change.
>
> Signed-off-by: Zhan Xusheng <zhanxusheng@xiaomi.com>

Acked-by: Oleg Nesterov <oleg@redhat.com>


      parent reply	other threads:[~2026-07-08 14:26 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-08  2:30 [PATCH] sched: Remove unused tryget_task_struct() Zhan Xusheng
2026-07-08  2:43 ` Tejun Heo
2026-07-08 14:26 ` Oleg Nesterov [this message]

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=ak5d_w2Ty-LYi-Mf@redhat.com \
    --to=oleg@redhat.com \
    --cc=akpm@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@kernel.org \
    --cc=peterz@infradead.org \
    --cc=tj@kernel.org \
    --cc=zhanxusheng1024@gmail.com \
    --cc=zhanxusheng@xiaomi.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox