[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <b040c32a0703241717t5fc33fc5ke645708d12b6e5cb@mail.gmail.com>
Date: Sat, 24 Mar 2007 17:17:18 -0700
From: "Ken Chen" <kenchen@...gle.com>
To: "Jan Engelhardt" <jengelh@...ux01.gwdg.de>
Cc: "Eric Dumazet" <dada1@...mosbay.com>, "Tomas M" <tomas@...x.org>,
"Linux Kernel Mailing List" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] max_loop limit
On 3/23/07, Jan Engelhardt <jengelh@...ux01.gwdg.de> wrote:
> Sadly, it locks up the foreground process (losetup that would be), and I
> have not yet figured out why. And the mpt regression elsewhere is
> hindering me in finding out faster.
You need to tell the block layer that each loop device is a whole
block device, not a partition within another device. Otherwise, I
think it will cause a recursive mutex lock in block_dev.c:do_open().
This patch should fix the problem.
Signed-off-by: Ken Chen <kenchen@...gle.com>
--- ./drivers/block/loop.c.orig 2007-03-24 17:05:51.000000000 -0700
+++ ./drivers/block/loop.c 2007-03-24 17:06:06.000000000 -0700
@@ -1464,6 +1464,7 @@
if ((lo = loop_find_dev(number)) == NULL) {
lo = loop_init_one(number);
+ *part = 0;
if (IS_ERR(lo))
return (void *)lo;
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists