drm/i915/gem: Atomically invalidate userptr on mmu-notifier
[linux-2.6-microblaze.git] / drivers / gpu / drm / i915 / gem / i915_gem_execbuffer.c
index 12cb2ef..8968a09 100644 (file)
@@ -2159,12 +2159,6 @@ static int eb_move_to_gpu(struct i915_execbuffer *eb)
 
 #ifdef CONFIG_MMU_NOTIFIER
        if (!err && (eb->args->flags & __EXEC_USERPTR_USED)) {
-               read_lock(&eb->i915->mm.notifier_lock);
-
-               /*
-                * count is always at least 1, otherwise __EXEC_USERPTR_USED
-                * could not have been set
-                */
                for (i = 0; i < count; i++) {
                        struct eb_vma *ev = &eb->vma[i];
                        struct drm_i915_gem_object *obj = ev->vma->obj;
@@ -2176,8 +2170,6 @@ static int eb_move_to_gpu(struct i915_execbuffer *eb)
                        if (err)
                                break;
                }
-
-               read_unlock(&eb->i915->mm.notifier_lock);
        }
 #endif