From owner-freebsd-net@FreeBSD.ORG Tue Dec 27 04:17:30 2011 Return-Path: Delivered-To: net@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B701F106566B; Tue, 27 Dec 2011 04:17:30 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from cell.glebius.int.ru (glebius.int.ru [81.19.64.117]) by mx1.freebsd.org (Postfix) with ESMTP id 1BEA68FC0C; Tue, 27 Dec 2011 04:17:29 +0000 (UTC) Received: from cell.glebius.int.ru (localhost [127.0.0.1]) by cell.glebius.int.ru (8.14.5/8.14.5) with ESMTP id pBR4HSvD024919; Tue, 27 Dec 2011 08:17:28 +0400 (MSK) (envelope-from glebius@FreeBSD.org) Received: (from glebius@localhost) by cell.glebius.int.ru (8.14.5/8.14.5/Submit) id pBR4HSwH024918; Tue, 27 Dec 2011 08:17:28 +0400 (MSK) (envelope-from glebius@FreeBSD.org) X-Authentication-Warning: cell.glebius.int.ru: glebius set sender to glebius@FreeBSD.org using -f Date: Tue, 27 Dec 2011 08:17:28 +0400 From: Gleb Smirnoff To: John Baldwin Message-ID: <20111227041728.GI8035@FreeBSD.org> References: <201112221130.01823.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <201112221130.01823.jhb@freebsd.org> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: Robert Watson , net@FreeBSD.org Subject: Re: Transitioning if_addr_lock to an rwlock X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Dec 2011 04:17:30 -0000 On Thu, Dec 22, 2011 at 11:30:01AM -0500, John Baldwin wrote: J> You can find the patch for 8.x at J> http://www.freebsd.org/~jhb/patches/if_addr_rwlock.patch Just my two pennies: for head/ patching if ip_carp.c should be straightforward: 1) Using W in carp_alloc_if() and carp_free_if(). 2) Using R everywhere else. -- Totus tuus, Glebius.