Message ID | 1396905423-19453-1-git-send-email-benjamin.widawsky@intel.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/drivers/gpu/drm/i915/i915_dma.c b/drivers/gpu/drm/i915/i915_dma.c index ed2d807..eb5bd74 100644 --- a/drivers/gpu/drm/i915/i915_dma.c +++ b/drivers/gpu/drm/i915/i915_dma.c @@ -1922,8 +1922,13 @@ void i915_driver_lastclose(struct drm_device * dev) void i915_driver_preclose(struct drm_device * dev, struct drm_file *file_priv) { + struct drm_i915_private *dev_priv = dev->dev_private; + bool old_intr = dev_priv->mm.interruptible; + mutex_lock(&dev->struct_mutex); + dev_priv->mm.interruptible = false; i915_gem_context_close(dev, file_priv); + dev_priv->mm.interruptible = old_intr; i915_gem_release(dev, file_priv); mutex_unlock(&dev->struct_mutex); }