From owner-cvs-src@FreeBSD.ORG Wed May 28 06:22:11 2003 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9009237B401; Wed, 28 May 2003 06:22:11 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 43A4A43F93; Wed, 28 May 2003 06:22:11 -0700 (PDT) (envelope-from iedowse@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h4SDMA0U021386; Wed, 28 May 2003 06:22:10 -0700 (PDT) (envelope-from iedowse@repoman.freebsd.org) Received: (from iedowse@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h4SDMA8Q021385; Wed, 28 May 2003 06:22:10 -0700 (PDT) Message-Id: <200305281322.h4SDMA8Q021385@repoman.freebsd.org> From: Ian Dowse Date: Wed, 28 May 2003 06:22:10 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/kern vfs_cluster.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 May 2003 13:22:12 -0000 iedowse 2003/05/28 06:22:10 PDT FreeBSD src repository Modified files: sys/kern vfs_cluster.c Log: In cluster_wbuild(), initialise b_iocmd to BIO_WRITE before calling buf_start() to avoid triggering a panic in softdep_disk_io_initiation() if b_iocmd happened to be BIO_READ. The later initialisation of b_iocmd in cluster_wbuild() could probably be moved to before the buf_start() call, but this patch keeps the change as simple as possible. This is reported to fix occasional "softdep_disk_io_initiation: read" panics, especially on NFS servers. Reported by: Nick Hilliard Tested by: Nick Hilliard Approved by: re (rwatson) Revision Changes Path 1.138 +3 -1 src/sys/kern/vfs_cluster.c