On Sun, Feb 16, 2020 at 04:12:46AM -0800, Paul E. McKenney wrote: > > +void ext4_kvfree_array_rcu(void *to_free) > > +{ > > + struct ext4_rcu_ptr *ptr = kzalloc(sizeof(*ptr), GFP_KERNEL); > > + > > + if (ptr) { > > + ptr->ptr = to_free; > > + call_rcu(&ptr->rcu, ext4_rcu_ptr_callback); > > + return; > > + } > > + synchronize_rcu(); > > + kvfree(ptr); > > +} Whoops, that last statement should be kvfree(to_free), of course. I'll fix that up in my tree. - Ted