Commit b3e5dc4
Martin Schwidefsky
s390/mm: fix local TLB flushing vs. detach of an mm address space
The local TLB flushing code keeps an additional mask in the mm.context,
the cpu_attach_mask. At the time a global flush of an address space is
done the cpu_attach_mask is copied to the mm_cpumask in order to avoid
future global flushes in case the mm is used by a single CPU only after
the flush.
Trouble is that the reset of the mm_cpumask is racy against the detach
of an mm address space by switch_mm. The current order is first the
global TLB flush and then the copy of the cpu_attach_mask to the
mm_cpumask. The order needs to be the other way around.
Cc: <[email protected]>
Reviewed-by: Heiko Carstens <[email protected]>
Signed-off-by: Martin Schwidefsky <[email protected]>1 parent 46fde9a commit b3e5dc4
2 files changed
+7
-23
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
107 | 106 | | |
108 | 107 | | |
109 | 108 | | |
| |||
121 | 120 | | |
122 | 121 | | |
123 | 122 | | |
124 | | - | |
| 123 | + | |
125 | 124 | | |
126 | 125 | | |
127 | 126 | | |
| |||
136 | 135 | | |
137 | 136 | | |
138 | 137 | | |
| 138 | + | |
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | 51 | | |
69 | 52 | | |
70 | 53 | | |
| |||
76 | 59 | | |
77 | 60 | | |
78 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
79 | 65 | | |
80 | 66 | | |
81 | 67 | | |
82 | 68 | | |
83 | 69 | | |
84 | 70 | | |
85 | | - | |
| 71 | + | |
| 72 | + | |
86 | 73 | | |
87 | | - | |
88 | | - | |
89 | 74 | | |
90 | 75 | | |
91 | 76 | | |
| |||
99 | 84 | | |
100 | 85 | | |
101 | 86 | | |
102 | | - | |
103 | 87 | | |
104 | 88 | | |
105 | 89 | | |
| |||
0 commit comments