From owner-freebsd-arch@FreeBSD.ORG Thu Oct 23 11:30:08 2003 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AC2E516A4B3 for ; Thu, 23 Oct 2003 11:30:08 -0700 (PDT) Received: from mail.speakeasy.net (mail5.speakeasy.net [216.254.0.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9D6F443FE0 for ; Thu, 23 Oct 2003 11:30:07 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Received: (qmail 3734 invoked from network); 23 Oct 2003 18:30:07 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender )encrypted SMTP for ; 23 Oct 2003 18:30:07 -0000 Received: from laptop.baldwin.cx (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.12.9/8.12.9) with ESMTP id h9NIU3ce099605; Thu, 23 Oct 2003 14:30:03 -0400 (EDT) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.5.4 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 Date: Thu, 23 Oct 2003 14:30:15 -0400 (EDT) From: John Baldwin To: arch@FreeBSD.org X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) cc: mckusick@mckusick.com Subject: Convert P_COWINPROGRESS to per-thread lock-less flag.. X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Oct 2003 18:30:08 -0000 As part of the proc locking, I have a patch that converts the per-process P_COWINPROGRESS flag to a per-thread flag instead. The per-thread flag is a TDP_COWINPROGRESS flag stored in td_pflags which does not require any locks. This removes the last user of p_flag that does not use the proc lock. Are there any problems with making this flag per-thread instead of per-process? http://www.FreeBSD.org/~jhb/patches/cow.patch -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/