Commit e677edb
committed
io_uring: fix race between timeout flush and removal
io_flush_timeouts() assumes the timeout isn't in progress of triggering
or being removed/canceled, so it unconditionally removes it from the
timeout list and attempts to cancel it.
Leave it on the list and let the normal timeout cancelation take care
of it.
Cc: stable@vger.kernel.org # 5.5+
Signed-off-by: Jens Axboe <axboe@kernel.dk>1 parent 4cdd158 commit e677edb
1 file changed
Lines changed: 3 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1736 | 1736 | | |
1737 | 1737 | | |
1738 | 1738 | | |
| 1739 | + | |
1739 | 1740 | | |
1740 | 1741 | | |
1741 | | - | |
| 1742 | + | |
1742 | 1743 | | |
1743 | | - | |
1744 | | - | |
1745 | 1744 | | |
1746 | 1745 | | |
1747 | 1746 | | |
| |||
1758 | 1757 | | |
1759 | 1758 | | |
1760 | 1759 | | |
1761 | | - | |
1762 | 1760 | | |
1763 | 1761 | | |
1764 | 1762 | | |
| |||
6628 | 6626 | | |
6629 | 6627 | | |
6630 | 6628 | | |
| 6629 | + | |
6631 | 6630 | | |
6632 | 6631 | | |
6633 | 6632 | | |
| |||
0 commit comments