Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1asA9h-0007GY-Qe for pgsql-committers@arkaria.postgresql.org; Mon, 18 Apr 2016 14:28:01 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1asA9h-0003oP-94 for pgsql-committers@arkaria.postgresql.org; Mon, 18 Apr 2016 14:28:01 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1asA9g-0003oA-NP for pgsql-committers@postgresql.org; Mon, 18 Apr 2016 14:28:00 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1asA9Z-0006Lb-KH for pgsql-committers@postgresql.org; Mon, 18 Apr 2016 14:28:00 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 2937020B21 for ; Mon, 18 Apr 2016 10:27:52 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute5.internal (MEProxy); Mon, 18 Apr 2016 10:27:52 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=WXJXi5WmcHTpnrQ07BAuz80sT6Q=; b=Kzipo +D0kMiGN710gdIpQ5tTsH9USNAndu36xBtmNFelGpxsHXPkNRwwiaFMk/Bv1pcCV YFnIKAFaiDTEtb8N/ZOYBX/nRu5F7Mhjdm0t/09obQ+BsxEcBbmHWp3sRQk0IIgf uAoXIHfbeyRmuVga0qdKIe/bmv8pcZfnt26ayI= X-Sasl-enc: ik8xEESnvHE/QLEANeWl/fuUesfwDvnx3ynEV982qdn5 1460989671 Received: from intern.anarazel.de (unknown [64.80.128.10]) by mail.messagingengine.com (Postfix) with ESMTPA id E7C4AC0001B; Mon, 18 Apr 2016 10:27:51 -0400 (EDT) Date: Mon, 18 Apr 2016 07:27:50 -0700 From: Andres Freund To: Alexander Korotkov Cc: Robert Haas , Tom Lane , pgsql-committers Subject: Re: pgsql: Allow Pin/UnpinBuffer to operate in a lockfree manner. Message-ID: <20160418142750.p3qwwnnuacb6n7jw@alap3.anarazel.de> References: <9194.1460908908@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org On 2016-04-18 17:12:32 +0300, Alexander Korotkov wrote: > On Mon, Apr 18, 2016 at 2:34 PM, Robert Haas wrote: > > > On Sun, Apr 17, 2016 at 12:01 PM, Tom Lane wrote: > > > Andres Freund writes: > > >> Allow Pin/UnpinBuffer to operate in a lockfree manner. > > > > > > Now that I've had some occasion to look around in bufmgr.c, I am very > > > unhappy that there are still boatloads of comments talking about a buffer > > > header's spinlock, when there is in fact no spinlock anymore. Please > > > expend some effort on making this less confusing for the next hacker. > > > Maybe make those comments talk about a "lock bit" instead? > > > > I was actually going to complain about this, too. I noticed it over > > the weekend when noodling around with another patch. I'm not sure > > exactly how it should be revised, but I find the current state of > > things confusing. > > > > +1 > Do we have consensus on renaming "buffer header spinlock" to "buffer header > lock bit"? Personally I think the "spin" part is actually quite relevant, and I think we shouldn't loose it. It describes concurrency and blocking behaviour, and how errors need to be handled (i.e. there may not be any). Greetings, Andres Freund -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers