drm/i915: i915_mutex_interruptible() returns -EINTR
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 11 Feb 2011 20:31:19 +0000 (20:31 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 11 Feb 2011 20:32:44 +0000 (20:32 +0000)
... so we handle that for i915_gem_fault() in the same manner as
ERESTARTSYS, or we send a SIGBUS to the faulting application.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/i915_gem.c

index 9297143..a8768e2 100644 (file)
@@ -1230,6 +1230,7 @@ out:
                set_need_resched();
        case 0:
        case -ERESTARTSYS:
+       case -EINTR:
                return VM_FAULT_NOPAGE;
        case -ENOMEM:
                return VM_FAULT_OOM;