* Re: [uml-devel] ubd_kern.c: spin_lock already locked by drivers/block/ll_rw_blk.c
[not found] <20030611091956.GA32752@alinoe.com>
@ 2004-08-19 18:57 ` Paolo Giarrusso
0 siblings, 0 replies; only message in thread
From: Paolo Giarrusso @ 2004-08-19 18:57 UTC (permalink / raw)
To: user-mode-linux-devel; +Cc: Carlo Wood, Jeff Dike
Alle 11:19, mercoledì 11 giugno 2003, Carlo Wood ha scritto:
> Running 2.5.69 as uml, I get the following during boot:
>
> ...
> NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
> /dev/ubd/disc0:arch/um/drivers/ubd_kern.c:383:
> spin_lock(arch/um/drivers/ubd_kern.c:a01b6940) already locked by
> drivers/block/ll_rw_blk.c/1002 drivers/block/ll_rw_blk.c:1004:
> spin_unlock(arch/um/drivers/ubd_kern.c:a01b6940) not locked unknown
> partition table
> /dev/ubd/disc1:arch/um/drivers/ubd_kern.c:383:
> spin_lock(arch/um/drivers/ubd_kern.c:a01b6940) already locked by
> drivers/block/ll_rw_blk.c/1002 drivers/block/ll_rw_blk.c:1004:
> spin_unlock(arch/um/drivers/ubd_kern.c:a01b6940) not locked unknown
> partition table
> arch/um/drivers/ubd_kern.c:383:
> spin_lock(arch/um/drivers/ubd_kern.c:a01b6940) already locked by
> drivers/block/ll_rw_blk.c/1002 drivers/block/ll_rw_blk.c:1004:
> spin_unlock(arch/um/drivers/ubd_kern.c:a01b6940) not locked
> arch/um/drivers/ubd_kern.c:383:
> spin_lock(arch/um/drivers/ubd_kern.c:a01b6940) already locked by
> drivers/block/ll_rw_blk.c/1002 drivers/block/ll_rw_blk.c:1004:
> spin_unlock(arch/um/drivers/ubd_kern.c:a01b6940) not locked
> arch/um/drivers/ubd_kern.c:383:
> spin_lock(arch/um/drivers/ubd_kern.c:a01b6940) already locked by
> drivers/block/ll_rw_blk.c/1002 drivers/block/ll_rw_blk.c:1004:
> spin_unlock(arch/um/drivers/ubd_kern.c:a01b6940) not locked VFS: Mounted
> root (ext2 filesystem) readonly.
> ...
>
> This is with kernel debugging on, of course.
>
> Because it mentions files in arch/um/*, it must be a problem
> with the uml.
In fact, yes, it's a UML problem. I'm going to solve this. No, I'm not crazy,
the problem is still here (the line numbers are different, but probably is
the same). As a side note, to get this you need CONFIG_SMP=n and
CONFIG_DEBUG_SPINLOCK=y. If you enable CONFIG_SMP, you actually don't get the
debug messages, only the deadlock. Also, to get *this* messages you need to
be using synchronous mode. I recommend *NOT* enabling
CONFIG_BLK_DEV_UBD_SYNC, but using instead the ubd=sync option (which is the
same thing, but selectable at runtime).
**And no, using the 's' ubd0s=... is not the same thing; the second just means
"use O_SYNC", while the first means "always use O_SYNC, and also don't start
the ubd I/O thread".
--
Paolo Giarrusso, aka Blaisorblade
Linux registered user n. 292729
-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-08-20 10:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20030611091956.GA32752@alinoe.com>
2004-08-19 18:57 ` [uml-devel] ubd_kern.c: spin_lock already locked by drivers/block/ll_rw_blk.c Paolo Giarrusso
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox