Received: from ultra.secret.org.uk ([194.154.178.202] helo=ultra) by pentafluge.infradead.org with esmtp (Exim 3.22 #1 (Red Hat Linux)) id 165zyP-0000zX-00 for ; Tue, 20 Nov 2001 01:45:17 +0000 Message-ID: <001b01c17166$6af4de40$0100a8c0@secret.org.uk> From: "Si" To: "David Woodhouse" , "Michael Rothwell" Cc: References: <1006107094.1391.46.camel@gromit.house> <2915.1006111512@redhat.com> Subject: Re: second "mount" hangs Date: Tue, 20 Nov 2001 01:54:14 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Sender: linux-mtd-admin@lists.infradead.org Errors-To: linux-mtd-admin@lists.infradead.org List-Help: List-Post: List-Subscribe: , List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: > > I think that the last time I saw this reported, it was also on a blkmtd > device. A quick perusal of the blkmtd code shows that it uses sleep_on > functions - which makes me instantly assume it's racy. > > Simon - can you reproduce this problem? > > -- > dwmw2 This is reproducible on both blkmtd and mtdram (and probably others) - this is from stock 2.4.14 testbox:/home/spse# cat /proc/mtd dev: size erasesize name mtd0: 00400000 00020000 "mtdram test device" testbox:/home/spse/src/mtd/util# ./mkfs.jffs2 >/dev/mtd/0 testbox:/home/spse/src/mtd/util# mount -t jffs2 /dev/mtdblock/0 /mnt/test testbox:/home/spse/src/mtd/util# umount /mnt/test testbox:/home/spse/src/mtd/util# mount -t jffs2 /dev/mtdblock/0 /mnt/test testbox:/home/spse/src/mtd/util# mount -t jffs2 /dev/mtdblock/0 /mnt/test [Hang] a ksymoops of a alt-sysrq T gives: Trace; c0232f55 Trace; c0235739 Trace; c013de29 Trace; c012ebc3 Trace; c013e427 Trace; c01cabce Trace; c0132e36 Trace; c0131bcf Trace; c013fa23 Trace; c01321ab Trace; c0140755 Trace; c01409db Trace; c014084d Trace; c0140a78 Trace; c0106b0b so possibly there is something in mtdblock that is going wrong. cheers si