From 268d2439251dba04642b208717a90d6890c512fc Mon Sep 17 00:00:00 2001 From: Ksawlii Date: Sun, 24 Nov 2024 00:23:15 +0100 Subject: [PATCH] Revert "padata: use integer wrap around to prevent deadlock on seq_nr overflow" This reverts commit 3b9a874cc01f6fc0998c311e593fc1dce235de9c. --- kernel/padata.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kernel/padata.c b/kernel/padata.c index 914a88d9c..41d5bf2fa 100755 --- a/kernel/padata.c +++ b/kernel/padata.c @@ -409,8 +409,7 @@ void padata_do_serial(struct padata_priv *padata) /* Sort in ascending order of sequence number. */ list_for_each_prev(pos, &reorder->list) { cur = list_entry(pos, struct padata_priv, list); - /* Compare by difference to consider integer wrap around */ - if ((signed int)(cur->seq_nr - padata->seq_nr) < 0) + if (cur->seq_nr < padata->seq_nr) break; } list_add(&padata->list, pos);