Re: [Intel-gfx] [PATCH] drm/i915: Pin pages whilst allocating for dma-buf vmap()

2013-11-29 Thread Daniel Vetter
On Fri, Nov 29, 2013 at 11:44:59AM +, Chris Wilson wrote: > During the vmap() routine for the dma-buf, we first grab the pages and > then try to allocate a temporary array to pass to the vmap(). However, > the shrinker can and will reap any object that is unbound if the > allocation for the arr

[Intel-gfx] [PATCH] drm/i915: Pin pages whilst allocating for dma-buf vmap()

2013-11-29 Thread Chris Wilson
During the vmap() routine for the dma-buf, we first grab the pages and then try to allocate a temporary array to pass to the vmap(). However, the shrinker can and will reap any object that is unbound if the allocation for the array first fails. This includes the object which we are attempting to vm