You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
drm/i915: Add a spinlock to protect the active_list
This is a baby-step in the direction of having finer-grained locking than the struct_mutex. Specifically, this will enable new debugging code to read the active list for printing out GPU state when the GPU is wedged, (while the struct_mutex is held, of course). Signed-off-by: Carl Worth <cworth@cworth.org> [anholt: indentation fix] Signed-off-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
@@ -300,6 +300,7 @@ typedef struct drm_i915_private {
|
||||
*
|
||||
* A reference is held on the buffer while on this list.
|
||||
*/
|
||||
spinlock_t active_list_lock;
|
||||
struct list_head active_list;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user