Repository navigation
Commit ae6d2ed
signals: tracehook_notify_jctl change
This changes tracehook_notify_jctl() so it's called with the siglock held,
and changes its argument and return value definition. These clean-ups
make it a better fit for what new tracing hooks need to check.
Tracing needs the siglock here, held from the time TASK_STOPPED was set,
to avoid potential SIGCONT races if it wants to allow any blocking in its
tracing hooks.
This also folds the finish_stop() function into its caller
do_signal_stop(). The function is short, called only once and only
unconditionally. It aids readability to fold it in.
[oleg@redhat.com: do not call tracehook_notify_jctl() in TASK_STOPPED state]
[oleg@redhat.com: introduce tracehook_finish_jctl() helper]
Signed-off-by: Roland McGrath <roland@redhat.com>
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>1 parent b6fe2d1 commit ae6d2ed
2 files changed
Lines changed: 72 additions & 59 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
463 | 463 | | |
464 | 464 | | |
465 | 465 | | |
466 | | - | |
| 466 | + | |
467 | 467 | | |
468 | 468 | | |
469 | 469 | | |
470 | | - | |
471 | | - | |
472 | | - | |
473 | 470 | | |
474 | | - | |
475 | | - | |
| 471 | + | |
| 472 | + | |
476 | 473 | | |
477 | | - | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
478 | 485 | | |
479 | 486 | | |
480 | 487 | | |
481 | | - | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
482 | 498 | | |
483 | 499 | | |
484 | 500 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
705 | 705 | | |
706 | 706 | | |
707 | 707 | | |
708 | | - | |
| 708 | + | |
709 | 709 | | |
710 | 710 | | |
711 | 711 | | |
| |||
1664 | 1664 | | |
1665 | 1665 | | |
1666 | 1666 | | |
1667 | | - | |
1668 | | - | |
1669 | | - | |
1670 | | - | |
1671 | | - | |
1672 | | - | |
1673 | | - | |
1674 | | - | |
1675 | | - | |
1676 | | - | |
1677 | | - | |
1678 | | - | |
1679 | | - | |
1680 | | - | |
1681 | | - | |
1682 | | - | |
1683 | | - | |
1684 | | - | |
1685 | | - | |
1686 | | - | |
1687 | | - | |
1688 | | - | |
1689 | | - | |
1690 | 1667 | | |
1691 | 1668 | | |
1692 | 1669 | | |
| |||
1696 | 1673 | | |
1697 | 1674 | | |
1698 | 1675 | | |
1699 | | - | |
| 1676 | + | |
1700 | 1677 | | |
1701 | | - | |
1702 | | - | |
1703 | | - | |
1704 | | - | |
1705 | | - | |
1706 | | - | |
1707 | | - | |
| 1678 | + | |
1708 | 1679 | | |
1709 | 1680 | | |
1710 | 1681 | | |
| |||
1716 | 1687 | | |
1717 | 1688 | | |
1718 | 1689 | | |
1719 | | - | |
| 1690 | + | |
1720 | 1691 | | |
1721 | 1692 | | |
1722 | 1693 | | |
| |||
1725 | 1696 | | |
1726 | 1697 | | |
1727 | 1698 | | |
1728 | | - | |
| 1699 | + | |
1729 | 1700 | | |
1730 | 1701 | | |
1731 | | - | |
1732 | 1702 | | |
| 1703 | + | |
| 1704 | + | |
| 1705 | + | |
| 1706 | + | |
| 1707 | + | |
| 1708 | + | |
| 1709 | + | |
| 1710 | + | |
| 1711 | + | |
| 1712 | + | |
| 1713 | + | |
| 1714 | + | |
| 1715 | + | |
| 1716 | + | |
| 1717 | + | |
| 1718 | + | |
| 1719 | + | |
| 1720 | + | |
| 1721 | + | |
1733 | 1722 | | |
1734 | | - | |
1735 | | - | |
1736 | | - | |
1737 | | - | |
| 1723 | + | |
| 1724 | + | |
| 1725 | + | |
| 1726 | + | |
| 1727 | + | |
| 1728 | + | |
| 1729 | + | |
| 1730 | + | |
| 1731 | + | |
| 1732 | + | |
| 1733 | + | |
| 1734 | + | |
| 1735 | + | |
1738 | 1736 | | |
1739 | | - | |
1740 | | - | |
1741 | 1737 | | |
1742 | 1738 | | |
1743 | 1739 | | |
| |||
1806 | 1802 | | |
1807 | 1803 | | |
1808 | 1804 | | |
1809 | | - | |
1810 | 1805 | | |
1811 | | - | |
1812 | | - | |
| 1806 | + | |
| 1807 | + | |
1813 | 1808 | | |
1814 | | - | |
1815 | | - | |
1816 | | - | |
| 1809 | + | |
| 1810 | + | |
| 1811 | + | |
| 1812 | + | |
| 1813 | + | |
1817 | 1814 | | |
1818 | 1815 | | |
1819 | 1816 | | |
| |||
1978 | 1975 | | |
1979 | 1976 | | |
1980 | 1977 | | |
1981 | | - | |
| 1978 | + | |
1982 | 1979 | | |
1983 | 1980 | | |
1984 | 1981 | | |
1985 | 1982 | | |
1986 | | - | |
| 1983 | + | |
1987 | 1984 | | |
1988 | | - | |
| 1985 | + | |
1989 | 1986 | | |
1990 | 1987 | | |
1991 | 1988 | | |
| |||
0 commit comments