[Intel-gfx] [PATCH 5/6] drm/i915: Simplify batch pool cache search

Chris Wilson chris at chris-wilson.co.uk
Thu Feb 26 05:39:31 PST 2015


On Thu, Feb 26, 2015 at 10:05:17AM +0000, Chris Wilson wrote:
> Combining list_del() with the list_for_each() is actually safe.

Sigh. It's not, the iterator disappears and so iter = iter->next is
unsafe (I was just thinking that the value of iter->next is left
untouched by list_del()). Time to go shopping.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre


More information about the Intel-gfx mailing list