Commit 430af82
uprobes: kill the unnecessary put_uprobe/xol_free_insn_slot in uprobe_free_utask()
If pre_ssout() succeeds and sets utask->active_uprobe and utask->xol_vaddr
the task must not exit until it calls handle_singlestep() which does the
necessary put_uprobe() and xol_free_insn_slot().
Remove put_uprobe() and xol_free_insn_slot() from uprobe_free_utask(). With
this change xol_free_insn_slot() can't hit xol_area/utask/xol_vaddr == NULL,
we can kill the unnecessary checks checks and simplify this function more.
Signed-off-by: Oleg Nesterov <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Link: https://lore.kernel.org/r/[email protected]1 parent c7b4133 commit 430af82
1 file changed
+5
-19
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1673 | 1673 | | |
1674 | 1674 | | |
1675 | 1675 | | |
1676 | | - | |
1677 | | - | |
1678 | | - | |
| 1676 | + | |
1679 | 1677 | | |
1680 | 1678 | | |
1681 | 1679 | | |
1682 | | - | |
1683 | | - | |
1684 | | - | |
1685 | | - | |
1686 | | - | |
1687 | | - | |
1688 | | - | |
1689 | | - | |
1690 | | - | |
1691 | | - | |
| 1680 | + | |
| 1681 | + | |
1692 | 1682 | | |
1693 | 1683 | | |
1694 | | - | |
1695 | | - | |
1696 | 1684 | | |
1697 | | - | |
| 1685 | + | |
1698 | 1686 | | |
1699 | 1687 | | |
1700 | 1688 | | |
| |||
1764 | 1752 | | |
1765 | 1753 | | |
1766 | 1754 | | |
1767 | | - | |
1768 | | - | |
| 1755 | + | |
1769 | 1756 | | |
1770 | 1757 | | |
1771 | 1758 | | |
1772 | 1759 | | |
1773 | 1760 | | |
1774 | | - | |
1775 | 1761 | | |
1776 | 1762 | | |
1777 | 1763 | | |
| |||
0 commit comments