On Fri, 23 Apr 2010 00:28:29 +0200, Daniel Vetter wrote: > This avoids stalling on the gpu. With the preparation from the > previous patch, this is really just a small change. > > Thanks to Owain Ainsworth for coming up > with the idea for this patch and hashing out the implementation > with me on irc. > > v2: Reset obj_priv->fence_invalid in put_fence. No functional > change because put_fence checks whether there is actually a > fence allocated, so the put_fence in adjust_fencing won't harm. > But IMHO the code makes slightly more sense this way around. Keith bisected down both of our laptops getting GPU hangs in short order to this patch, so I've gone back and pulled it and a few others out of the tree.