[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20060717024519.GA26318@agk.surrey.redhat.com>
Date: Mon, 17 Jul 2006 03:45:19 +0100
From: Alasdair G Kergon <agk@...hat.com>
To: Peter Osterlund <petero2@...ia.com>
Cc: linux-kernel@...r.kernel.org,
Arjan van de Ven <arjan@...ux.intel.com>,
dm-devel@...hat.com, Ingo Molnar <mingo@...e.hu>,
Milan Broz <mbroz@...hat.com>,
"Jun'ichi Nomura" <j-nomura@...jp.nec.com>
Subject: Re: lockdep warning when nesting dm devices
On Sat, Jul 15, 2006 at 01:17:29PM +0200, Peter Osterlund wrote:
> # echo "0 10000 linear /dev/loop0 0" | /sbin/dmsetup create test
> # echo "0 10000 linear /dev/mapper/test 0" | /sbin/dmsetup create test2
> I get the following warning from the lockdep validator.
> =============================================
> [ INFO: possible recursive locking detected ]
> ---------------------------------------------
Well at first sight the message is simply pointing out something expected - it
only say "INFO" after all - viz. recursive use of
down_read(&md->io_lock);
something tied up with the split_bio horridness which needs to go away some
day. The lock prevents any attempt to suspend the device from happening
while a bio is in the process of being split into other bios.
Of course it's always helpful to review code from different perspectives
like this to look out for any gotchas and we ought to re-check the use
of this lock.
> Btw, is there a limit on how many dm devices can be chained? I guess
> there will be a kernel stack overflow if you try to chain together too
> many devices.
There's a patch in -mm which tackles that, but it needs some changes to dm
(which Milan Broz has begun working on) before it will behave correctly in all
cases.
Alasdair
--
agk@...hat.com
-
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