Re: [patch] remove artificial software max_loop limit

From: Andrew Morton
Date: Fri Mar 30 2007 - 18:51:09 EST


On Fri, 30 Mar 2007 15:06:03 -0700
"Ken Chen" <kenchen@xxxxxxxxxx> wrote:

> On 3/30/07, Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> wrote:
> > So.. this change will cause a fatal error for anyone who is presently
> > using max_loop, won't it? If they're doing that within their
> > initramfs/initrd/etc then things could get rather ugly for them.
>
> probably, if they access loop device non-sequentially.
>

My point is that the modprobe will fail if it is passed an unrecognised
module parameter (won't it?)

So if we're worried about not breaking existing setups, we should retain
this module parameter as a do-nothing thing, maybe with a
this-is-going-away warning printk, too.

>
> > I don't know how much of a problem this will be in practice - do people use
> > max_loop much?
>
> I don't know either.

hm.

>
> > btw, did you test this change as both a module and as linked-into-vmlinux?
>
> as linked-into-vmlinux. why do you ask? It breaks if it is module?
> I made last minute change to a mutex name and shamely posted without
> doing a compile test. Besides that, is there something else breaks?

Just idle curiosity regarding how much testing it had seen.

Generally one would expect things to be OK, but there can be startup
ordering problems.

The most common problem is that the module simply doesn't load because it's
using some not-exported-to-modules symbol

-
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/