Commit 70001cd
committed
drm/i915: Remove struct_mutex for destroying framebuffers
We do not need to hold struct_mutex for destroying drm_i915_gem_objects
any longer, and with a little care taken over tracking
obj->framebuffer_references, we can relinquish BKL locking around the
destroy of intel_framebuffer.
v2: Use atomic check for WARN_ON framebuffer miscounting
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170216094621.3426-1-chris@chris-wilson.co.uk
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>1 parent 581ab1f commit 70001cd
File tree
4 files changed
+7
-8
lines changed- drivers/gpu/drm/i915
4 files changed
+7
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
168 | | - | |
| 168 | + | |
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
210 | | - | |
| 210 | + | |
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
241 | | - | |
| 241 | + | |
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14265 | 14265 | | |
14266 | 14266 | | |
14267 | 14267 | | |
14268 | | - | |
14269 | 14268 | | |
14270 | 14269 | | |
14271 | 14270 | | |
14272 | | - | |
14273 | | - | |
| 14271 | + | |
| 14272 | + | |
14274 | 14273 | | |
14275 | | - | |
| 14274 | + | |
14276 | 14275 | | |
14277 | 14276 | | |
14278 | 14277 | | |
| |||
14509 | 14508 | | |
14510 | 14509 | | |
14511 | 14510 | | |
14512 | | - | |
| 14511 | + | |
14513 | 14512 | | |
14514 | 14513 | | |
14515 | 14514 | | |
| |||
0 commit comments