intel: Repeat execbuffer after EINTR
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 2 Dec 2009 12:58:00 +0000 (12:58 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 2 Dec 2009 14:17:15 +0000 (14:17 +0000)
EAGAIN cannot be raised by the current code, but the system call maybe
interrupted and so return EINTR.

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

index bb20f43..239f36d 100644 (file)
@@ -1293,7 +1293,7 @@ drm_intel_gem_bo_exec(drm_intel_bo *bo, int used,
                ret = ioctl(bufmgr_gem->fd,
                            DRM_IOCTL_I915_GEM_EXECBUFFER,
                            &execbuf);
-       } while (ret != 0 && errno == EAGAIN);
+       } while (ret != 0 && errno == EINTR);
 
        if (ret != 0) {
                ret = -errno;