lkml.org 
[lkml]   [2015]   [Jun]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: call_rcu from trace_preempt
On Tue, 16 Jun 2015 11:41:51 -0400
Steven Rostedt <rostedt@goodmis.org> wrote:

> > if (l) {
> > hlist_del_rcu(&l->hash_node);
> > htab->count--;
> > - kfree_rcu(l, rcu);
> > + /* kfree_rcu(l, rcu); */
>
> So this kfree_rcu() is only being used to defer a free, and has nothing
> to do with having to free 'l' from rcu?
>

If you still require kfree_rcu() but can not call it here, still use an
irq_work, and have the irq_work handler call kfree_rcu().

-- Steve


\
 
 \ /
  Last update: 2015-06-16 18:01    [W:1.037 / U:0.164 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site