* [GIT PULL] kthreads fixes for v6.14-rc2
@ 2025-02-04 18:58 Frederic Weisbecker
2025-02-04 19:06 ` Linus Torvalds
2025-02-04 19:13 ` pr-tracker-bot
0 siblings, 2 replies; 5+ messages in thread
From: Frederic Weisbecker @ 2025-02-04 18:58 UTC (permalink / raw)
To: Linus Torvalds; +Cc: linux-kernel
Linus,
The following changes since commit 2014c95afecee3e76ca4a56956a936e23283f05b:
Linux 6.14-rc1 (2025-02-02 15:39:26 -0800)
are available in the Git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/frederic/linux-dynticks.git tags/kthreads-fixes-2025-02-04
for you to fetch changes up to 1b0332a42656b798bea867631d739de023633ec6:
kthread: Fix return value on kzalloc() failure in kthread_affine_preferred() (2025-02-04 01:42:27 +0100)
----------------------------------------------------------------
Fixes for kthreads
- Properly handle return value when allocation fails for the preferred
affinity.
----------------------------------------------------------------
Yu-Chun Lin (1):
kthread: Fix return value on kzalloc() failure in kthread_affine_preferred()
kernel/kthread.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [GIT PULL] kthreads fixes for v6.14-rc2
2025-02-04 18:58 [GIT PULL] kthreads fixes for v6.14-rc2 Frederic Weisbecker
@ 2025-02-04 19:06 ` Linus Torvalds
2025-02-04 21:39 ` Frederic Weisbecker
2025-02-05 5:01 ` Dhruva Gole
2025-02-04 19:13 ` pr-tracker-bot
1 sibling, 2 replies; 5+ messages in thread
From: Linus Torvalds @ 2025-02-04 19:06 UTC (permalink / raw)
To: Frederic Weisbecker; +Cc: linux-kernel
On Tue, 4 Feb 2025 at 10:58, Frederic Weisbecker <frederic@kernel.org> wrote:
>
> - Properly handle return value when allocation fails for the preferred
> affinity.
Well, we have exactly one caller of this function, and that caller
doesn't actually care about the return value.
The function is literally the "preferred" affinity. If the affinity
setup fails, it's harmless.
Anyway, the fix doesn't look wrong, and I've pulled it, but it's just
all very harmless. I think the "set but not used" error could have
been fixed by just removing the 'ret' variable entirely.
Linus
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [GIT PULL] kthreads fixes for v6.14-rc2
2025-02-04 18:58 [GIT PULL] kthreads fixes for v6.14-rc2 Frederic Weisbecker
2025-02-04 19:06 ` Linus Torvalds
@ 2025-02-04 19:13 ` pr-tracker-bot
1 sibling, 0 replies; 5+ messages in thread
From: pr-tracker-bot @ 2025-02-04 19:13 UTC (permalink / raw)
To: Frederic Weisbecker; +Cc: Linus Torvalds, linux-kernel
The pull request you sent on Tue, 4 Feb 2025 19:58:44 +0100:
> git://git.kernel.org/pub/scm/linux/kernel/git/frederic/linux-dynticks.git tags/kthreads-fixes-2025-02-04
has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/5c8c229261f14159b54b9a32f12e5fa89d88b905
Thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/prtracker.html
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [GIT PULL] kthreads fixes for v6.14-rc2
2025-02-04 19:06 ` Linus Torvalds
@ 2025-02-04 21:39 ` Frederic Weisbecker
2025-02-05 5:01 ` Dhruva Gole
1 sibling, 0 replies; 5+ messages in thread
From: Frederic Weisbecker @ 2025-02-04 21:39 UTC (permalink / raw)
To: Linus Torvalds; +Cc: linux-kernel
Le Tue, Feb 04, 2025 at 11:06:57AM -0800, Linus Torvalds a écrit :
> On Tue, 4 Feb 2025 at 10:58, Frederic Weisbecker <frederic@kernel.org> wrote:
> >
> > - Properly handle return value when allocation fails for the preferred
> > affinity.
>
> Well, we have exactly one caller of this function, and that caller
> doesn't actually care about the return value.
>
> The function is literally the "preferred" affinity. If the affinity
> setup fails, it's harmless.
>
> Anyway, the fix doesn't look wrong, and I've pulled it, but it's just
> all very harmless. I think the "set but not used" error could have
> been fixed by just removing the 'ret' variable entirely.
Right, I wanted to be able to reflect failure just in case but the
point of doing it is certainly debatable... Thanks for pulling it
anyway!
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [GIT PULL] kthreads fixes for v6.14-rc2
2025-02-04 19:06 ` Linus Torvalds
2025-02-04 21:39 ` Frederic Weisbecker
@ 2025-02-05 5:01 ` Dhruva Gole
1 sibling, 0 replies; 5+ messages in thread
From: Dhruva Gole @ 2025-02-05 5:01 UTC (permalink / raw)
To: Linus Torvalds; +Cc: Frederic Weisbecker, linux-kernel
On Feb 04, 2025 at 11:06:57 -0800, Linus Torvalds wrote:
> On Tue, 4 Feb 2025 at 10:58, Frederic Weisbecker <frederic@kernel.org> wrote:
> >
> > - Properly handle return value when allocation fails for the preferred
> > affinity.
>
> Well, we have exactly one caller of this function, and that caller
> doesn't actually care about the return value.
Yeah that was my initial thought while sending the fix here:
https://lore.kernel.org/linux-kernel/20250204090838.214647-1-d-gole@ti.com/
This patch hasn't appeared in next yet (next-20250204) so I missed this thread.
>
> The function is literally the "preferred" affinity. If the affinity
> setup fails, it's harmless.
>
> Anyway, the fix doesn't look wrong, and I've pulled it, but it's just
> all very harmless. I think the "set but not used" error could have
> been fixed by just removing the 'ret' variable entirely.
>
> Linus
>
--
Best regards,
Dhruva Gole
Texas Instruments Incorporated
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2025-02-05 5:01 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-04 18:58 [GIT PULL] kthreads fixes for v6.14-rc2 Frederic Weisbecker
2025-02-04 19:06 ` Linus Torvalds
2025-02-04 21:39 ` Frederic Weisbecker
2025-02-05 5:01 ` Dhruva Gole
2025-02-04 19:13 ` pr-tracker-bot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox