From owner-freebsd-arch@FreeBSD.ORG Thu Oct 23 13:05:58 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 E57D216A4B3; Thu, 23 Oct 2003 13:05:58 -0700 (PDT) Received: from beastie.mckusick.com (beastie.mckusick.com [209.31.233.184]) by mx1.FreeBSD.org (Postfix) with ESMTP id 440EA43F85; Thu, 23 Oct 2003 13:05:58 -0700 (PDT) (envelope-from mckusick@beastie.mckusick.com) Received: from beastie.mckusick.com (localhost [127.0.0.1]) by beastie.mckusick.com (8.12.8/8.12.3) with ESMTP id h9NK5veN007816; Thu, 23 Oct 2003 13:05:57 -0700 (PDT) (envelope-from mckusick@beastie.mckusick.com) Message-Id: <200310232005.h9NK5veN007816@beastie.mckusick.com> To: John Baldwin In-Reply-To: Your message of "Thu, 23 Oct 2003 14:30:15 EDT." Date: Thu, 23 Oct 2003 13:05:57 -0700 From: Kirk McKusick cc: arch@FreeBSD.org Subject: Re: 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 20:05:59 -0000 Date: Thu, 23 Oct 2003 14:30:15 -0400 (EDT) From: John Baldwin To: arch@FreeBSD.org Subject: Convert P_COWINPROGRESS to per-thread lock-less flag.. Cc: mckusick@mckusick.com X-ASK-Info: Whitelist match 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/ I do not see any problems with it being per-thread. Kirk McKusick