intel: Repeat execbuffer if interrupted by signal
authorChris Wilson <chris@chris-wilson.co.uk>
Sun, 7 Mar 2010 14:15:40 +0000 (14:15 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Sun, 7 Mar 2010 14:17:24 +0000 (14:17 +0000)
Repeat while EINTR, not EAGAIN! One more source of corruption
erradicated, hurray!

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
intel/intel_bufmgr_gem.c

index 21fe099..8838536 100644 (file)
@@ -1559,7 +1559,7 @@ drm_intel_gem_bo_exec2(drm_intel_bo *bo, int used,
        do {
                ret = ioctl(bufmgr_gem->fd, DRM_IOCTL_I915_GEM_EXECBUFFER2,
                            &execbuf);
-       } while (ret != 0 && errno == EAGAIN);
+       } while (ret != 0 && errno == EINTR);
 
        if (ret != 0) {
                ret = -errno;