Revert "padata: use integer wrap around to prevent deadlock on seq_nr overflow"

This reverts commit 3b9a874cc0.
This commit is contained in:
Ksawlii 2024-11-24 00:23:15 +01:00
parent 54f5f7d42a
commit 268d243925

View file

@ -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);