All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/i915/gvt: more locking for ppgtt mm LRU list
@ 2020-02-03 15:07 ` Igor Druzhinin
  0 siblings, 0 replies; 9+ messages in thread
From: Igor Druzhinin @ 2020-02-03 15:07 UTC (permalink / raw)
  To: linux-kernel, dri-devel, intel-gfx, intel-gvt-dev
  Cc: zhenyuw, zhi.a.wang, jani.nikula, joonas.lahtinen, rodrigo.vivi,
	airlied, daniel, Igor Druzhinin

When the lock was introduced in 72aabfb862e40 ("drm/i915/gvt: Add mutual
lock for ppgtt mm LRU list") one place got lost.

Signed-off-by: Igor Druzhinin <igor.druzhinin@citrix.com>
---
 drivers/gpu/drm/i915/gvt/gtt.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/gpu/drm/i915/gvt/gtt.c b/drivers/gpu/drm/i915/gvt/gtt.c
index 34cb404..4a48280 100644
--- a/drivers/gpu/drm/i915/gvt/gtt.c
+++ b/drivers/gpu/drm/i915/gvt/gtt.c
@@ -1956,7 +1956,11 @@ void _intel_vgpu_mm_release(struct kref *mm_ref)
 
 	if (mm->type == INTEL_GVT_MM_PPGTT) {
 		list_del(&mm->ppgtt_mm.list);
+
+		mutex_lock(&mm->vgpu->gvt->gtt.ppgtt_mm_lock);
 		list_del(&mm->ppgtt_mm.lru_list);
+		mutex_unlock(&mm->vgpu->gvt->gtt.ppgtt_mm_lock);
+
 		invalidate_ppgtt_mm(mm);
 	} else {
 		vfree(mm->ggtt_mm.virtual_ggtt);
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2020-02-10  1:55 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-03 15:07 [PATCH] drm/i915/gvt: more locking for ppgtt mm LRU list Igor Druzhinin
2020-02-03 15:07 ` [Intel-gfx] " Igor Druzhinin
2020-02-03 15:07 ` Igor Druzhinin
2020-02-04 18:12 ` [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for " Patchwork
2020-02-04 18:41 ` [Intel-gfx] ✓ Fi.CI.BAT: success " Patchwork
2020-02-06 18:42 ` [Intel-gfx] ✓ Fi.CI.IGT: " Patchwork
2020-02-10  1:43 ` [PATCH] " Zhenyu Wang
2020-02-10  1:43   ` [Intel-gfx] " Zhenyu Wang
2020-02-10  1:43   ` Zhenyu Wang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.