From owner-cvs-all Wed Mar 12 23:31:49 2003 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C10CE37B401; Wed, 12 Mar 2003 23:31:46 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6FA9243FB1; Wed, 12 Mar 2003 23:31:46 -0800 (PST) (envelope-from jeff@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 h2D7Vk0U003672; Wed, 12 Mar 2003 23:31:46 -0800 (PST) (envelope-from jeff@repoman.freebsd.org) Received: (from jeff@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h2D7VkOi003671; Wed, 12 Mar 2003 23:31:46 -0800 (PST) Message-Id: <200303130731.h2D7VkOi003671@repoman.freebsd.org> From: Jeff Roberson Date: Wed, 12 Mar 2003 23:31:46 -0800 (PST) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/fs/specfs spec_vnops.c src/sys/kern kern_physio.c vfs_bio.c src/sys/sys buf.h X-FreeBSD-CVS-Branch: HEAD 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 jeff 2003/03/12 23:31:46 PST FreeBSD src repository Modified files: sys/fs/specfs spec_vnops.c sys/kern kern_physio.c vfs_bio.c sys/sys buf.h Log: - Add a lock for protecting against msleep(bp, ...) wakeup(bp) races. - Create a new function bdone() which sets B_DONE and calls wakup(bp). This is suitable for use as b_iodone for buf consumers who are not going through the buf cache. - Create a new function bwait() which waits for the buf to be done at a set priority and with a specific wmesg. - Replace several cases where the above functionality was implemented without locking with the new functions. Revision Changes Path 1.199 +2 -17 src/sys/fs/specfs/spec_vnops.c 1.56 +5 -9 src/sys/kern/kern_physio.c 1.378 +37 -10 src/sys/kern/vfs_bio.c 1.149 +2 -0 src/sys/sys/buf.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message