Date: Wed, 15 Oct 2003 09:31:07 -0400 (EDT) From: Robert Watson <rwatson@freebsd.org> To: "Vladimir B. Grebenschikov" <vova@sw.ru> Cc: "current@freebsd.org" <current@freebsd.org> Subject: Re: fsck_ufs -B lockup any writes on filesystem Message-ID: <Pine.NEB.3.96L.1031015092910.48934C-100000@fledge.watson.org> In-Reply-To: <1066203984.1271.27.camel@localhost>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 15 Oct 2003, Vladimir B. Grebenschikov wrote: > After unclean shutdown, system boots and work properly. After some time > any processes triing to write was blocked in suspfs state. fsck_ufs > process was blocked in suspwt state. I reported an identical set of symptoms over the weekend to Kirk and Jeff, and a fix was committed as src/sys/kerne/vfs_bio.c:1.412. A missing write lock release in buffer cache locking work would leave the disk suspended for writes, and the result is a file system deadlock just as you describe. Could you check and see which version of vfs_bio.c you're running with -- if it's the earlier version, try updating? If it's the newer version, please let me know. Here's the commit message: Date: Mon, 13 Oct 2003 17:38:35 -0700 (PDT) From: Jeff Roberson <jeff@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern vfs_bio.c jeff 2003/10/13 17:38:35 PDT FreeBSD src repository Modified files: sys/kern vfs_bio.c Log: - Add a mising vn_finished_write() Pointy hat: jeff Found by: robert Obtained from: kirk Revision Changes Path 1.412 +1 -0 src/sys/kern/vfs_bio.c > > Killing blocked processes does not helps. > > # ps alx | fgrep fsck_ufs > 0 917 736 0 75 0 676 268 suspwt D ?? 0:00.91 > fsck_ufs -p -B /dev/ad0s3f > > # strace -p 917 > mount(0x80af3d3, 0x80cb44c, 0x1211000, 0xbfbffcc0^C <unfinished ...> > ^C > > # ps alx | fgrep suspfs > 0 559 1 0 75 0 7076 1588 suspfs Is ?? 0:01.92 > /usr/local/sbin/cupsd > 207 611 609 0 75 0 8832 2396 suspfs I ?? 0:00.11 > /usr/X11R6/bin/gdm-binary > 207 836 1 0 75 0 18000 9108 suspfs I ?? 0:02.33 > /usr/X11R6/libexec/stickynotes_applet > 207 865 1 2 75 0 55932 41028 suspfs I ?? 1:59.49 > evolution-1.4 > 207 867 1 0 75 0 32296 16000 suspfs I ?? 0:22.15 > /usr/X11R6/share/opera/bin/opera --bi > 207 942 1 0 75 0 4120 2068 suspfs I p0- 0:00.04 licq > > I can cure situation only be running fsck -y in single-user mode. > > PR: kern/58060 > > -- > Vladimir B. Grebenschikov <vova@sw.ru> > SWsoft Inc. > > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.NEB.3.96L.1031015092910.48934C-100000>