From owner-cvs-all Mon Jan 29 22:32:23 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 2B00037B698; Mon, 29 Jan 2001 22:32:00 -0800 (PST) Received: (from dillon@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f0U6VxF61959; Mon, 29 Jan 2001 22:31:59 -0800 (PST) (envelope-from dillon) Message-Id: <200101300631.f0U6VxF61959@freefall.freebsd.org> From: Matt Dillon Date: Mon, 29 Jan 2001 22:31:59 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/ufs/ffs ffs_softdep.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG dillon 2001/01/29 22:31:59 PST Modified files: sys/ufs/ffs ffs_softdep.c Log: Fix a race between the syncer and umount. When you umount a softupdates filesystem softdep_process_worklist() is called in a loop until it indicates that no dependancies remain, but the determination of that fact depends on there only being one softdep_process_worklist() instance running. It was possible for the syncer to also be running softdep_process_worklist() and the pre-existing checks in the code to prevent this were not sufficient to prevent the race. This patch solves the problem. Approved-by: mckusick Revision Changes Path 1.81 +39 -13 src/sys/ufs/ffs/ffs_softdep.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message