On 11/28/2016 11:47 AM, Paul E. McKenney wrote:
On Mon, Nov 28, 2016 at 10:09:16AM +0100, Daniel Borkmann wrote:
On 11/28/2016 07:57 AM, Cong Wang wrote:
[...]
The ugly part is the work struct, I am not an RCU expert so don't know if we
have any API to execute an RCU callback in process context. Paul?
Same way we do this in BPF with prog destruction, by the way. I'm not aware
of any callback API for RCU that lets you do this, but maybe Paul knows.
RCU callbacks are always executed in softirq context, so yes, you do need
to use something like a work struct. (Or a wakeup to a kthread or
whatever.)
Ok, thanks for the confirmation!
Daniel