Commit 9ea366f
rcu: Make RCU IRQ enter/exit functions rely on in_nmi()
The rcu_nmi_enter_common() and rcu_nmi_exit_common() functions take an
"irq" parameter that indicates whether these functions have been invoked from
an irq handler (irq==true) or an NMI handler (irq==false).
However, recent changes have applied notrace to a few critical functions
such that rcu_nmi_enter_common() and rcu_nmi_exit_common() many now rely on
in_nmi(). Note that in_nmi() works no differently than before, but rather
that tracing is now prohibited in code regions where in_nmi() would
incorrectly report NMI state.
Therefore remove the "irq" parameter and inline rcu_nmi_enter_common() and
rcu_nmi_exit_common() into rcu_nmi_enter() and rcu_nmi_exit(),
respectively.
Signed-off-by: Paul E. McKenney <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Reviewed-by: Alexandre Chartre <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]1 parent ff5c4f5 commit 9ea366f
1 file changed
+15
-32
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
664 | 664 | | |
665 | 665 | | |
666 | 666 | | |
667 | | - | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
668 | 670 | | |
669 | 671 | | |
670 | 672 | | |
671 | 673 | | |
672 | 674 | | |
673 | | - | |
| 675 | + | |
674 | 676 | | |
675 | 677 | | |
676 | | - | |
| 678 | + | |
677 | 679 | | |
678 | 680 | | |
679 | 681 | | |
| |||
704 | 706 | | |
705 | 707 | | |
706 | 708 | | |
707 | | - | |
| 709 | + | |
708 | 710 | | |
709 | 711 | | |
710 | 712 | | |
711 | 713 | | |
712 | 714 | | |
713 | 715 | | |
714 | 716 | | |
715 | | - | |
| 717 | + | |
716 | 718 | | |
717 | 719 | | |
718 | 720 | | |
719 | | - | |
720 | | - | |
721 | | - | |
722 | | - | |
723 | | - | |
724 | | - | |
725 | | - | |
726 | | - | |
727 | | - | |
728 | | - | |
729 | | - | |
730 | 721 | | |
731 | 722 | | |
732 | 723 | | |
| |||
749 | 740 | | |
750 | 741 | | |
751 | 742 | | |
752 | | - | |
| 743 | + | |
753 | 744 | | |
754 | 745 | | |
755 | 746 | | |
| |||
838 | 829 | | |
839 | 830 | | |
840 | 831 | | |
841 | | - | |
| 832 | + | |
842 | 833 | | |
843 | 834 | | |
844 | 835 | | |
| |||
847 | 838 | | |
848 | 839 | | |
849 | 840 | | |
850 | | - | |
| 841 | + | |
851 | 842 | | |
852 | 843 | | |
853 | | - | |
| 844 | + | |
854 | 845 | | |
855 | 846 | | |
856 | 847 | | |
| |||
868 | 859 | | |
869 | 860 | | |
870 | 861 | | |
871 | | - | |
| 862 | + | |
872 | 863 | | |
873 | 864 | | |
874 | 865 | | |
875 | 866 | | |
876 | 867 | | |
877 | 868 | | |
878 | | - | |
| 869 | + | |
879 | 870 | | |
880 | 871 | | |
881 | 872 | | |
882 | | - | |
| 873 | + | |
883 | 874 | | |
884 | 875 | | |
885 | 876 | | |
| |||
913 | 904 | | |
914 | 905 | | |
915 | 906 | | |
916 | | - | |
917 | | - | |
918 | | - | |
919 | | - | |
920 | | - | |
921 | | - | |
922 | | - | |
923 | | - | |
924 | 907 | | |
925 | 908 | | |
926 | 909 | | |
| |||
946 | 929 | | |
947 | 930 | | |
948 | 931 | | |
949 | | - | |
| 932 | + | |
950 | 933 | | |
951 | 934 | | |
952 | 935 | | |
| |||
0 commit comments