From owner-freebsd-scsi Sun Jul 13 16:47:31 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id QAA13525 for freebsd-scsi-outgoing; Sun, 13 Jul 1997 16:47:31 -0700 (PDT) Received: from implode.root.com (implode.root.com [198.145.90.17]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id QAA13518 for ; Sun, 13 Jul 1997 16:47:26 -0700 (PDT) Received: from implode.root.com (localhost [127.0.0.1]) by implode.root.com (8.8.5/8.8.5) with ESMTP id QAA00548; Sun, 13 Jul 1997 16:47:49 -0700 (PDT) Message-Id: <199707132347.QAA00548@implode.root.com> To: "Justin T. Gibbs" cc: Simon Shapiro , filo@yahoo.com, freebsd-SCSI@FreeBSD.ORG Subject: Re: problems with reboot In-reply-to: Your message of "Sun, 13 Jul 1997 09:55:37 MDT." <199707131555.JAA25833@pluto.plutotech.com> From: David Greenman Reply-To: dg@root.com Date: Sun, 13 Jul 1997 16:47:48 -0700 Sender: owner-freebsd-scsi@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >>>There is an issue with FreeBSD shutdown not waiting for the DPt to flush >>>caches as it should. >> >> Should be easy to fix by adding a shutdown routine to the driver that waits >>for the flushes to complete. >> >>-DG >> >>David Greenman >>Core-team/Principal Architect, The FreeBSD Project > >If we're not waiting for the last close to complete, that is a bug >that should be fixed. I believe that Simon added a syncronize >cache command into sdclose which should address the DPT issue so >long as it actually gets performed and we wait for it to complete. >The syncronize cache command may be required for other disk devices >as well, and a generic solution is always better than a controller >specific one. The shutdown code waits for all buffers to be flushed, but the code has no way of knowing if the controller actually committed the data to disk. If a disk controller indicates I/O completion/success before the data is actually written to disk, then it seems to me that forcing the cache flush would be a controller specific operation. Yes? -DG David Greenman Core-team/Principal Architect, The FreeBSD Project