Commit 60bc720
committed
ring-buffer: Make ring_buffer_{un}map() simpler with guard(mutex)
Convert the taking of the buffer->mutex and the cpu_buffer->mapping_lock
over to guard(mutex) and simplify the ring_buffer_map() and
ring_buffer_unmap() functions.
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Vincent Donnefort <vdonnefort@google.com>
Link: https://lore.kernel.org/20250527122009.267efb72@gandalf.local.home
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>1 parent b2e7c6e commit 60bc720
1 file changed
+11
-24
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7161 | 7161 | | |
7162 | 7162 | | |
7163 | 7163 | | |
7164 | | - | |
| 7164 | + | |
7165 | 7165 | | |
7166 | 7166 | | |
7167 | 7167 | | |
7168 | 7168 | | |
7169 | 7169 | | |
7170 | 7170 | | |
7171 | | - | |
| 7171 | + | |
7172 | 7172 | | |
7173 | 7173 | | |
7174 | 7174 | | |
7175 | 7175 | | |
7176 | 7176 | | |
7177 | | - | |
7178 | 7177 | | |
7179 | 7178 | | |
7180 | 7179 | | |
7181 | 7180 | | |
7182 | | - | |
| 7181 | + | |
7183 | 7182 | | |
7184 | 7183 | | |
7185 | 7184 | | |
7186 | | - | |
| 7185 | + | |
7187 | 7186 | | |
7188 | 7187 | | |
7189 | 7188 | | |
7190 | 7189 | | |
7191 | 7190 | | |
7192 | | - | |
7193 | | - | |
| 7191 | + | |
7194 | 7192 | | |
7195 | 7193 | | |
7196 | 7194 | | |
| |||
7218 | 7216 | | |
7219 | 7217 | | |
7220 | 7218 | | |
7221 | | - | |
7222 | | - | |
7223 | | - | |
7224 | | - | |
7225 | | - | |
| 7219 | + | |
7226 | 7220 | | |
7227 | 7221 | | |
7228 | 7222 | | |
7229 | 7223 | | |
7230 | 7224 | | |
7231 | 7225 | | |
7232 | | - | |
7233 | 7226 | | |
7234 | 7227 | | |
7235 | 7228 | | |
7236 | 7229 | | |
7237 | 7230 | | |
7238 | 7231 | | |
7239 | | - | |
| 7232 | + | |
7240 | 7233 | | |
7241 | 7234 | | |
7242 | | - | |
7243 | | - | |
| 7235 | + | |
7244 | 7236 | | |
7245 | 7237 | | |
7246 | | - | |
| 7238 | + | |
7247 | 7239 | | |
7248 | 7240 | | |
7249 | | - | |
| 7241 | + | |
7250 | 7242 | | |
7251 | 7243 | | |
7252 | 7244 | | |
| |||
7261 | 7253 | | |
7262 | 7254 | | |
7263 | 7255 | | |
7264 | | - | |
7265 | | - | |
7266 | | - | |
7267 | | - | |
7268 | | - | |
7269 | | - | |
| 7256 | + | |
7270 | 7257 | | |
7271 | 7258 | | |
7272 | 7259 | | |
| |||
0 commit comments