This repository was archived by the owner on Nov 7, 2025. It is now read-only.
Commit a0fcc4e
committed
no_cpu_relax hack
Getting stashed dentry only for the bpf helper does not seem to work -
the dentry is usually zero, so the fast path returns ENOENT. Going
with slow path for the bpf helper is kind of icky, because the slow
path can sleep.
Since we don't want to sleep during the bpf helper function, allow
going through the slow path without calling cpu_relax. All other
callers of the function with the slow path are not affected.
It kinda still stinks, because the bpf helper still has some busy
loop…
Signed-off-by: Krzesimir Nowak <[email protected]>1 parent 1f1db24 commit a0fcc4e
1 file changed
+31
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
74 | 80 | | |
75 | 81 | | |
76 | 82 | | |
| |||
106 | 112 | | |
107 | 113 | | |
108 | 114 | | |
109 | | - | |
| 115 | + | |
| 116 | + | |
110 | 117 | | |
111 | 118 | | |
112 | 119 | | |
| |||
115 | 122 | | |
116 | 123 | | |
117 | 124 | | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
118 | 142 | | |
119 | 143 | | |
120 | 144 | | |
| 145 | + | |
| 146 | + | |
121 | 147 | | |
122 | 148 | | |
123 | 149 | | |
| |||
130 | 156 | | |
131 | 157 | | |
132 | 158 | | |
| 159 | + | |
133 | 160 | | |
134 | 161 | | |
135 | 162 | | |
136 | 163 | | |
137 | 164 | | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
| 165 | + | |
149 | 166 | | |
150 | 167 | | |
151 | 168 | | |
| |||
192 | 209 | | |
193 | 210 | | |
194 | 211 | | |
195 | | - | |
| 212 | + | |
196 | 213 | | |
197 | 214 | | |
198 | 215 | | |
| |||
0 commit comments