Re: [Intel-gfx] [PATCH] drm/i915: Add an rcu_barrier option to i915_drop_caches

2019-10-11 Thread Matthew Auld
On Fri, 11 Oct 2019 at 18:38, Chris Wilson wrote: > > Sometimes a test has to wait for RCU to complete a grace period and > perform its callbacks, for example waiting for a close(fd) to actually > perform the fput(filp) and so trigger all the callbacks such as closing > GEM contexts. There is no t

[Intel-gfx] [PATCH] drm/i915: Add an rcu_barrier option to i915_drop_caches

2019-10-11 Thread Chris Wilson
Sometimes a test has to wait for RCU to complete a grace period and perform its callbacks, for example waiting for a close(fd) to actually perform the fput(filp) and so trigger all the callbacks such as closing GEM contexts. There is no trivial means of triggering an RCU barrier from userspace, so