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: Vegard Nossum <vegard.nossum@...>
Cc: Jens Axboe <axboe@...>, Ingo Molnar <mingo@...>, Pekka Enberg <penberg@...>, Linux Kernel Mailing List <linux-kernel@...>, Paul E. McKenney <paulmck@...>
Date: Tuesday, April 1, 2008 - 5:36 pm

On Tue, 2008-04-01 at 23:08 +0200, Vegard Nossum wrote:

The missing hlist for loop would look something like so:

#define hlist_for_each_entry_safe_rcu(tpos, pos, n, head, member)        \
        for (pos = (head)->first;                                        \
             rcu_dereference(pos) && ({ n = pos->next; 1; }) &&          \
                ({ tpos = hlist_entry(pos, typeof(*tpos), member); 1;}); \
             pos = n)




--
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..., Peter Zijlstra, (Tue Apr 1, 5:36 pm)