* [PATCH] padata: Replace bottom-half spinlock variants
@ 2026-07-17 20:50 Daniel Jordan
2026-07-17 22:42 ` Eric Biggers
0 siblings, 1 reply; 2+ messages in thread
From: Daniel Jordan @ 2026-07-17 20:50 UTC (permalink / raw)
To: Herbert Xu, Steffen Klassert, Eric Biggers
Cc: linux-crypto, linux-kernel, Daniel Jordan
Padata no longer runs in softirq context, so normal non-bottom-half
spinlock calls will suffice.
Signed-off-by: Daniel Jordan <daniel.m.jordan@oracle.com>
---
Based on latest upstream plus Eric's four padata changes from
https://lore.kernel.org/linux-crypto/20260713223234.24812-1-ebiggers@kernel.org/
https://lore.kernel.org/all/20260717171831.27994-1-ebiggers@kernel.org/
kernel/padata.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/kernel/padata.c b/kernel/padata.c
index a28fe0c4f66b5..1d095986add28 100644
--- a/kernel/padata.c
+++ b/kernel/padata.c
@@ -75,7 +75,7 @@ static int __init padata_work_alloc_mt(int nworks, void *data,
{
int i;
- spin_lock_bh(&padata_works_lock);
+ spin_lock(&padata_works_lock);
/* Start at 1 because the current task participates in the job. */
for (i = 1; i < nworks; ++i) {
struct padata_work *pw = padata_work_alloc();
@@ -85,7 +85,7 @@ static int __init padata_work_alloc_mt(int nworks, void *data,
padata_work_init(pw, padata_mt_helper, data, 0);
list_add(&pw->pw_list, head);
}
- spin_unlock_bh(&padata_works_lock);
+ spin_unlock(&padata_works_lock);
return i;
}
@@ -103,12 +103,12 @@ static void __init padata_works_free(struct list_head *works)
if (list_empty(works))
return;
- spin_lock_bh(&padata_works_lock);
+ spin_lock(&padata_works_lock);
list_for_each_entry_safe(cur, next, works, pw_list) {
list_del(&cur->pw_list);
padata_work_free(cur);
}
- spin_unlock_bh(&padata_works_lock);
+ spin_unlock(&padata_works_lock);
}
static void __init padata_mt_helper(struct work_struct *w)
base-commit: af5e34a41cd607c00ef752e00331736570992354
prerequisite-patch-id: 57ddb64f17182e9382163da55150610d385274df
prerequisite-patch-id: 9ea2c856c57f6c92abe7f2b52e701e46398cb5bb
prerequisite-patch-id: d64acc3296775ba4482d99b5a7d567af22a859a5
prerequisite-patch-id: 095134ce73f4279a0af1708ed2de4135bcb3e2eb
--
2.47.3
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] padata: Replace bottom-half spinlock variants
2026-07-17 20:50 [PATCH] padata: Replace bottom-half spinlock variants Daniel Jordan
@ 2026-07-17 22:42 ` Eric Biggers
0 siblings, 0 replies; 2+ messages in thread
From: Eric Biggers @ 2026-07-17 22:42 UTC (permalink / raw)
To: Daniel Jordan; +Cc: Herbert Xu, Steffen Klassert, linux-crypto, linux-kernel
On Fri, Jul 17, 2026 at 04:50:28PM -0400, Daniel Jordan wrote:
> Padata no longer runs in softirq context, so normal non-bottom-half
> spinlock calls will suffice.
>
> Signed-off-by: Daniel Jordan <daniel.m.jordan@oracle.com>
> ---
>
> Based on latest upstream plus Eric's four padata changes from
> https://lore.kernel.org/linux-crypto/20260713223234.24812-1-ebiggers@kernel.org/
> https://lore.kernel.org/all/20260717171831.27994-1-ebiggers@kernel.org/
>
> kernel/padata.c | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
Reviewed-by: Eric Biggers <ebiggers@kernel.org>
- Eric
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-07-17 22:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-17 20:50 [PATCH] padata: Replace bottom-half spinlock variants Daniel Jordan
2026-07-17 22:42 ` Eric Biggers
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.