From owner-cvs-all Thu Feb 21 11:15:14 2002 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 CB67937B400; Thu, 21 Feb 2002 11:15:10 -0800 (PST) Received: (from dillon@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g1LJFAi09419; Thu, 21 Feb 2002 11:15:10 -0800 (PST) (envelope-from dillon) Message-Id: <200202211915.g1LJFAi09419@freefall.freebsd.org> From: Matt Dillon Date: Thu, 21 Feb 2002 11:15:10 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern kern_shutdown.c X-FreeBSD-CVS-Branch: RELENG_4 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG dillon 2002/02/21 11:15:10 PST Modified files: (Branch: RELENG_4) sys/kern kern_shutdown.c Log: If a system shutdown is performed immediately after doing softupdates-heavy filesystem operations the shutdown code may stall on buffers being held locked by softupdates, resulting an unclean shutdown. These buffers are never unlocked because the syncer has already been killed. The solution is to call bioops.io_sync() in the shutdown code. From Kirk: "The buffers that are being held locked contain the indirect block pointers for files that are to be removed. The request to remove them is sitting on the soft updates worklist. They are not being processed because the syncer daemon has been stopped." MFC after: 3 days Revision Changes Path 1.72.2.12 +4 -2 src/sys/kern/kern_shutdown.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message