Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759548AbZD0XP1 (ORCPT ); Mon, 27 Apr 2009 19:15:27 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754695AbZD0XPL (ORCPT ); Mon, 27 Apr 2009 19:15:11 -0400 Received: from smtp1.linux-foundation.org ([140.211.169.13]:44028 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753187AbZD0XPJ (ORCPT ); Mon, 27 Apr 2009 19:15:09 -0400 Date: Mon, 27 Apr 2009 16:03:52 -0700 (PDT) From: Linus Torvalds X-X-Sender: torvalds@localhost.localdomain To: Stephen Hemminger cc: Evgeniy Polyakov , Ingo Molnar , Peter Zijlstra , Mathieu Desnoyers , Eric Dumazet , David Miller , Jarek Poplawski , Paul Mackerras , paulmck@linux.vnet.ibm.com, kaber@trash.net, jeff.chua.linux@gmail.com, laijs@cn.fujitsu.com, jengelh@medozas.de, r000n@r000n.net, linux-kernel@vger.kernel.org, netfilter-devel@vger.kernel.org, netdev@vger.kernel.org, benh@kernel.crashing.org Subject: Re: [PATCH] netfilter: use per-CPU r**ursive lock {XV} In-Reply-To: Message-ID: References: <49F22465.80305@gmail.com> <20090425133052.4cb711f5@nehalam> <49F4A6E3.7080102@cosmosbay.com> <20090426185646.GB29238@Krystal> <20090426145746.1184aeba@nehalam> <1240854297.7620.65.camel@twins> <20090427113010.5e3f1700@nehalam> <20090427185423.GC23862@elte.hu> <20090427120658.35a858bb@nehalam> <20090427203616.GB3836@ioremap.net> <20090427144054.1fb9b7a6@nehalam> User-Agent: Alpine 2.00 (LFD 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 750 Lines: 28 On Mon, 27 Apr 2009, Linus Torvalds wrote: > > BTW: THIS IS TOTALLY UNTESTED. Gaah. I should have read through it one more time before sending. > static inline void xt_info_rdunlock_bh(void) > { > struct xt_info_lock *lock; > > lock = &__get_cpu_var(xt_info_locks); > if (!--lock->readers) > spin_unlock(&lock->lock); > } This one was missing the "local_bh_enable()" at the end. There may be other bugs, but that's the one I noticed immediately when reading what I sent out. Oops. Linus -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/