Re: kmemcheck caught read from freed memory (cfq_free_io_context)

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Peter Zijlstra <a.p.zijlstra@...>
Cc: Vegard Nossum <vegard.nossum@...>, Jens Axboe <axboe@...>, Ingo Molnar <mingo@...>, Pekka Enberg <penberg@...>, Linux Kernel Mailing List <linux-kernel@...>
Date: Tuesday, April 1, 2008 - 6:51 pm

On Tue, Apr 01, 2008 at 11:36:28PM +0200, Peter Zijlstra wrote:

Why the heck is cic_free_func() immediately doing a kmem_cache_free()
on the cfq_io_context structure???  Shouldn't we have a call_rcu() or a
synchronize_rcu() in there somewhere???  Given the way this is written,
wouldn't readers on other code paths get dumped onto the freelist?
This would not be a good thing...

							Thanx, Paul
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: kmemcheck caught read from freed memory (cfq_free_io_con..., Paul E. McKenney, (Tue Apr 1, 6:51 pm)