Commit e944624
exit: move core of do_wait() into helper
Rather than have a maze of gotos, put the actual logic in __do_wait()
and have do_wait() loop deal with waitqueue setup/teardown and whether
to call __do_wait() again.
No functional changes intended in this patch.
Acked-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
(cherry picked from commit 06a101c)
Signed-off-by: Wentao Guan <guanwentao@uniontech.com>1 parent 50405ed commit e944624
1 file changed
Lines changed: 31 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1599 | 1599 | | |
1600 | 1600 | | |
1601 | 1601 | | |
1602 | | - | |
| 1602 | + | |
1603 | 1603 | | |
1604 | | - | |
1605 | | - | |
1606 | | - | |
| 1604 | + | |
1607 | 1605 | | |
1608 | | - | |
1609 | | - | |
1610 | | - | |
1611 | | - | |
1612 | 1606 | | |
1613 | 1607 | | |
1614 | 1608 | | |
| |||
1620 | 1614 | | |
1621 | 1615 | | |
1622 | 1616 | | |
1623 | | - | |
1624 | 1617 | | |
1625 | 1618 | | |
1626 | 1619 | | |
1627 | 1620 | | |
1628 | 1621 | | |
1629 | | - | |
| 1622 | + | |
1630 | 1623 | | |
1631 | 1624 | | |
1632 | 1625 | | |
1633 | 1626 | | |
1634 | 1627 | | |
1635 | 1628 | | |
1636 | | - | |
| 1629 | + | |
1637 | 1630 | | |
1638 | 1631 | | |
1639 | 1632 | | |
1640 | | - | |
| 1633 | + | |
1641 | 1634 | | |
1642 | 1635 | | |
1643 | 1636 | | |
| |||
1647 | 1640 | | |
1648 | 1641 | | |
1649 | 1642 | | |
1650 | | - | |
1651 | | - | |
1652 | | - | |
1653 | | - | |
1654 | | - | |
1655 | | - | |
1656 | | - | |
1657 | | - | |
| 1643 | + | |
| 1644 | + | |
| 1645 | + | |
| 1646 | + | |
| 1647 | + | |
| 1648 | + | |
| 1649 | + | |
| 1650 | + | |
| 1651 | + | |
| 1652 | + | |
| 1653 | + | |
| 1654 | + | |
| 1655 | + | |
| 1656 | + | |
| 1657 | + | |
| 1658 | + | |
| 1659 | + | |
| 1660 | + | |
| 1661 | + | |
| 1662 | + | |
| 1663 | + | |
| 1664 | + | |
| 1665 | + | |
| 1666 | + | |
| 1667 | + | |
| 1668 | + | |
1658 | 1669 | | |
1659 | 1670 | | |
1660 | 1671 | | |
| |||
0 commit comments