Re: [patch] [bugfix] loop.c

From: Al Viro
Date: Fri Mar 23 2007 - 10:49:32 EST


On Fri, Mar 23, 2007 at 02:41:09PM +0000, Christoph Hellwig wrote:
> The right thing to start with is to split the allocation up, and allocate
> each loop device by itself, like in the untested patch below:
>
> After that you're not wasting memory for any off number of loop devices
> and can create as many as you have device numbers available:

NAK. You _can't_ bail out in init after add_disk(). It might have been
opened already.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/