Re: [PATCH 5/6] drm/i915: Simplify batch pool cache search

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/intel-gfx





[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux