Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Fri, 20 Sep 2002 12:21:18 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Fri, 20 Sep 2002 12:21:18 -0400 Received: from mx1.elte.hu ([157.181.1.137]:52435 "HELO mx1.elte.hu") by vger.kernel.org with SMTP id ; Fri, 20 Sep 2002 12:21:18 -0400 Date: Fri, 20 Sep 2002 18:34:02 +0200 (CEST) From: Ingo Molnar Reply-To: Ingo Molnar To: Oleg Drokin Cc: Linus Torvalds , William Lee Irwin III , Subject: Re: [patch] generic-pidhash-2.5.36-D4, BK-curr In-Reply-To: <20020920154347.A12399@namesys.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 558 Lines: 18 On Fri, 20 Sep 2002, Oleg Drokin wrote: > I mean it is only safe to use such spinlock-based function if all other > places read and write this value via special functions that are also > taking this spinlock. yes - but this is true in this specific PID allocator case, we only access it via cmpxchg(). Ingo - 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/