From 364d44a24cb7a32ab7ac860e9dde0cd5d082fcd7 Mon Sep 17 00:00:00 2001 From: Rik Faith Date: Fri, 18 Aug 2000 18:57:56 +0000 Subject: Fix ABA problem in drm_freelist_{put,try} --- linux-core/drmP.h | 1 + 1 file changed, 1 insertion(+) (limited to 'linux-core') diff --git a/linux-core/drmP.h b/linux-core/drmP.h index 0fa20571..aa9bc01a 100644 --- a/linux-core/drmP.h +++ b/linux-core/drmP.h @@ -328,6 +328,7 @@ typedef struct drm_freelist { int low_mark; /* Low water mark */ int high_mark; /* High water mark */ atomic_t wfh; /* If waiting for high mark */ + spinlock_t lock; } drm_freelist_t; typedef struct drm_buf_entry { -- cgit v1.2.3