Repository navigation
Commit 2397074
[PATCH] SELinux: change isec semaphore to a mutex
This patch converts the remaining isec->sem into a mutex. Very similar
locking is provided as before only in the faster smaller mutex rather than a
semaphore. An out_unlock path is introduced rather than the conditional
unlocking found in the original code.
Signed-off-by: Eric Paris <eparis@redhat.com>
Acked-by: Stephen Smalley <sds@tycho.nsa.gov>
Acked-by: James Morris <jmorris@namei.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>1 parent 296fddf commit 2397074
3 files changed
Lines changed: 17 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| 74 | + | |
74 | 75 | | |
75 | 76 | | |
76 | 77 | | |
| |||
185 | 186 | | |
186 | 187 | | |
187 | 188 | | |
188 | | - | |
| 189 | + | |
189 | 190 | | |
190 | 191 | | |
191 | 192 | | |
| |||
843 | 844 | | |
844 | 845 | | |
845 | 846 | | |
846 | | - | |
847 | 847 | | |
848 | 848 | | |
849 | 849 | | |
850 | 850 | | |
851 | | - | |
852 | | - | |
| 851 | + | |
853 | 852 | | |
854 | | - | |
| 853 | + | |
855 | 854 | | |
856 | 855 | | |
857 | 856 | | |
| |||
862 | 861 | | |
863 | 862 | | |
864 | 863 | | |
865 | | - | |
| 864 | + | |
866 | 865 | | |
867 | 866 | | |
868 | 867 | | |
| |||
885 | 884 | | |
886 | 885 | | |
887 | 886 | | |
888 | | - | |
| 887 | + | |
889 | 888 | | |
890 | 889 | | |
891 | 890 | | |
892 | 891 | | |
893 | 892 | | |
894 | 893 | | |
895 | 894 | | |
896 | | - | |
| 895 | + | |
897 | 896 | | |
898 | 897 | | |
899 | 898 | | |
| |||
903 | 902 | | |
904 | 903 | | |
905 | 904 | | |
906 | | - | |
| 905 | + | |
907 | 906 | | |
908 | 907 | | |
909 | 908 | | |
910 | 909 | | |
911 | 910 | | |
912 | 911 | | |
913 | 912 | | |
914 | | - | |
| 913 | + | |
915 | 914 | | |
916 | 915 | | |
917 | 916 | | |
| |||
924 | 923 | | |
925 | 924 | | |
926 | 925 | | |
927 | | - | |
| 926 | + | |
928 | 927 | | |
929 | 928 | | |
930 | 929 | | |
| |||
960 | 959 | | |
961 | 960 | | |
962 | 961 | | |
963 | | - | |
| 962 | + | |
964 | 963 | | |
965 | 964 | | |
966 | 965 | | |
| |||
978 | 977 | | |
979 | 978 | | |
980 | 979 | | |
981 | | - | |
| 980 | + | |
982 | 981 | | |
983 | 982 | | |
984 | 983 | | |
| |||
987 | 986 | | |
988 | 987 | | |
989 | 988 | | |
| 989 | + | |
| 990 | + | |
990 | 991 | | |
991 | 992 | | |
992 | 993 | | |
993 | | - | |
994 | | - | |
995 | | - | |
996 | 994 | | |
997 | 995 | | |
998 | 996 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2578 | 2578 | | |
2579 | 2579 | | |
2580 | 2580 | | |
2581 | | - | |
| 2581 | + | |
2582 | 2582 | | |
2583 | 2583 | | |
2584 | 2584 | | |
2585 | 2585 | | |
2586 | 2586 | | |
2587 | 2587 | | |
2588 | 2588 | | |
2589 | | - | |
| 2589 | + | |
2590 | 2590 | | |
2591 | 2591 | | |
2592 | 2592 | | |
| |||
0 commit comments