Re: lib/idr.c: initialize struct idr_layer

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Pekka Enberg <penberg@...>
Cc: Jim Houston <jim.houston@...>, Ingo Molnar <mingo@...>, Tejun Heo <htejun@...>, Linux Kernel Mailing List <linux-kernel@...>
Date: Sunday, January 27, 2008 - 5:17 pm

On Jan 27, 2008 10:00 PM, Pekka Enberg <penberg@cs.helsinki.fi> wrote:

That would make sense. However...

idr_layer_cache is only used for allocations from idr_pre_get().
idr_pre_get() is only called from ida_pre_get().

If this analysis is correct, can this mean that the user has failed to
call ida_pre_get() before idr_get_new() was called?

Though in this case, idr_pre_get() actually *is* called first. Hmm...
I think there's a pretty big chance that kmemcheck is at fault :-(

Vegard
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
lib/idr.c: initialize struct idr_layer, Vegard Nossum, (Sun Jan 27, 4:07 pm)
Re: lib/idr.c: initialize struct idr_layer, Pekka Enberg, (Sun Jan 27, 5:00 pm)
Re: lib/idr.c: initialize struct idr_layer, Vegard Nossum, (Sun Jan 27, 5:17 pm)
Re: lib/idr.c: initialize struct idr_layer, Pekka J Enberg, (Sun Jan 27, 5:21 pm)
Re: lib/idr.c: initialize struct idr_layer, Vegard Nossum, (Sun Jan 27, 5:30 pm)
Re: lib/idr.c: initialize struct idr_layer, Pekka Enberg, (Sun Jan 27, 5:35 pm)
Re: lib/idr.c: initialize struct idr_layer, Vegard Nossum, (Sun Jan 27, 5:56 pm)