loop: preallocate eight loop devices
commita47653fc2643cf61bcabba8c9ff5c45517c089ba
authorKen Chen <kenchen@google.com>
Fri, 8 Jun 2007 20:46:44 +0000 (8 13:46 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Sat, 9 Jun 2007 00:23:32 +0000 (8 17:23 -0700)
treeb29e9c4d4bebae15c7678c6da73fd1687d6e8d37
parentc287ef1ff9296ddf707af6f9d355e1c3ffc243dd
loop: preallocate eight loop devices

The kernel on-demand loop device instantiation breaks several user space
tools as the tools are not ready to cope with the "on-demand feature".  Fix
it by instantiate default 8 loop devices and also reinstate max_loop module
parameter.

Signed-off-by: Ken Chen <kenchen@google.com>
Acked-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/block/loop.c