Re: [RFC 06/10] block: use tida as small id allocator

2016-12-08 Thread Greg Kroah-Hartman
On Wed, Dec 07, 2016 at 08:56:27PM -0700, Jens Axboe wrote: > On 12/07/2016 06:23 PM, Rasmus Villemoes wrote: > > A struct ida ends up costing > 16 KB of runtime memory, which is quite > > a lot for something which on my laptop as of this writing has handed > > out 27 ids in its lifetime. So use th

Re: [RFC 06/10] block: use tida as small id allocator

2016-12-07 Thread Jens Axboe
On 12/07/2016 06:23 PM, Rasmus Villemoes wrote: > A struct ida ends up costing > 16 KB of runtime memory, which is quite > a lot for something which on my laptop as of this writing has handed > out 27 ids in its lifetime. So use the simpler and lighter-weight > struct tida. I'm worried that your e

[RFC 06/10] block: use tida as small id allocator

2016-12-07 Thread Rasmus Villemoes
A struct ida ends up costing > 16 KB of runtime memory, which is quite a lot for something which on my laptop as of this writing has handed out 27 ids in its lifetime. So use the simpler and lighter-weight struct tida. Signed-off-by: Rasmus Villemoes --- block/blk-core.c | 6 +++--- block/blk-s