lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Thu, 21 Jul 2011 09:29:05 +0100
From:	Jonathan Cameron <>
To:	Tejun Heo <>
CC:	Rusty Russell <>,
	LKML <>,
	Andrew Morton <>
Subject: Re: RFC: Boiler plate functions for ida / idr allocation?

On 07/21/11 09:19, Tejun Heo wrote:
> On Thu, Jul 21, 2011 at 05:07:36PM +0930, Rusty Russell wrote:
>> From: Rusty Russell <>
>> Subject: ida: Simplified functions for id allocation.
>> The current hyper-optimized functions are overkill if you simply want
>> to allocate an id for a device.  Create versions which use an internal
>> lock.
>> Thanks to Tejun for feedback.  Feel free to delete the #ifdef TEST
>> code.
>> Signed-off-by: Rusty Russell <>
> ...
>>  static struct kmem_cache *idr_layer_cache;
>> +static DEFINE_SPINLOCK(simple_ida);
> I think the name is a bit confusing.  Maybe simple_ida_lock is better?
> Other than that,
>  Acked-by: Tejun Heo <>
> I guess this is best routed through -mm?
> Thanks.
Thanks Rusty. Just what I was looking for. I'll push out some patches using
this once it's picked up.

Acked-by: Jonathan Cameron <>

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

Powered by blists - more mailing lists