Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1arp92-0001OM-4V for pgsql-committers@arkaria.postgresql.org; Sun, 17 Apr 2016 16:01:56 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1arp91-0002sU-JP for pgsql-committers@arkaria.postgresql.org; Sun, 17 Apr 2016 16:01:55 +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 1arp91-0002sO-C4 for pgsql-committers@postgresql.org; Sun, 17 Apr 2016 16:01:55 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1arp8y-0003Hb-D3 for pgsql-committers@postgresql.org; Sun, 17 Apr 2016 16:01:54 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u3HG1m1p009195; Sun, 17 Apr 2016 12:01:48 -0400 From: Tom Lane To: Andres Freund cc: pgsql-committers@postgresql.org Subject: Re: pgsql: Allow Pin/UnpinBuffer to operate in a lockfree manner. In-reply-to: References: Comments: In-reply-to Andres Freund message dated "Mon, 11 Apr 2016 03:12:51 -0000" Date: Sun, 17 Apr 2016 12:01:48 -0400 Message-ID: <9194.1460908908@sss.pgh.pa.us> X-Pg-Spam-Score: -2.9 (--) 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 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? regards, tom lane -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers