[ofa-general] Re: idr_get_new_above() limitation?

2007-07-04 Thread Hoang-Nam Nguyen
On Tuesday 03 July 2007 02:31, Jim Houston wrote: The problem is in idr_get_new_above_int() in the loop which adds new layers to the top of the radix tree. It is failing the layers (MAX_LEVEL - 1) test. It doesn't allocate the new layer but still calls sub_alloc() which relies on having

[ofa-general] Re: idr_get_new_above() limitation?

2007-07-02 Thread Andrew Morton
On Mon, 2 Jul 2007 19:19:26 +0200 Hoang-Nam Nguyen [EMAIL PROTECTED] wrote: For ehca device driver we're intending to utilize idr_get_new_above() and have written a test case, which I'm attaching at the end. Basically it tries to get an idr token above a lower boundary by calling

[ofa-general] Re: idr_get_new_above() limitation?

2007-07-02 Thread Jim Houston
On Mon, 2007-07-02 at 19:19 +0200, Hoang-Nam Nguyen wrote: i=3fff token=3fff t=3fff i=4000 token=4000 t= Invalid object . Expected 4000 That means token 0x4000 seems to be the upper boundary of idr_find(). However the