projects
/
platform
/
upstream
/
libdrm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
65b90fb
)
intel: Retry pin ioctl on -EINTR.
author
Eric Anholt
<eric@anholt.net>
Mon, 5 Jan 2009 01:37:18 +0000
(17:37 -0800)
committer
Eric Anholt
<eric@anholt.net>
Thu, 15 Jan 2009 00:12:08 +0000
(16:12 -0800)
libdrm/intel/intel_bufmgr_gem.c
patch
|
blob
|
history
diff --git
a/libdrm/intel/intel_bufmgr_gem.c
b/libdrm/intel/intel_bufmgr_gem.c
index
c510e5e
..
7b821de
100644
(file)
--- a/
libdrm/intel/intel_bufmgr_gem.c
+++ b/
libdrm/intel/intel_bufmgr_gem.c
@@
-999,7
+999,10
@@
drm_intel_gem_bo_pin(drm_intel_bo *bo, uint32_t alignment)
pin.handle = bo_gem->gem_handle;
pin.alignment = alignment;
- ret = ioctl(bufmgr_gem->fd, DRM_IOCTL_I915_GEM_PIN, &pin);
+ do {
+ ret = ioctl(bufmgr_gem->fd, DRM_IOCTL_I915_GEM_PIN, &pin);
+ } while (ret == -1 && errno == EINTR);
+
if (ret != 0)
return -errno;