Revert "padata: use integer wrap around to prevent deadlock on seq_nr overflow"
This reverts commit 3b9a874cc0
.
This commit is contained in:
parent
54f5f7d42a
commit
268d243925
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue