Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1arqEE-0005JE-EC for pgsql-committers@arkaria.postgresql.org; Sun, 17 Apr 2016 17:11:22 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1arqED-0007zQ-4q for pgsql-committers@arkaria.postgresql.org; Sun, 17 Apr 2016 17:11:21 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1arqEB-0007xD-Ee for pgsql-committers@postgresql.org; Sun, 17 Apr 2016 17:11:19 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1arqE7-0004vy-Up for pgsql-committers@postgresql.org; Sun, 17 Apr 2016 17:11:17 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 8110520AC4 for ; Sun, 17 Apr 2016 13:11:14 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute4.internal (MEProxy); Sun, 17 Apr 2016 13:11:14 -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=IqDnEQWuCSe6gHNDWRYcRoiYT4w=; b=PECgI KTBooh02t12X3lscgloA5NjyfvPaWGJFXaN42/SufVEl0dLBtf+RA0bFj572OLPa fZIGbB6wv/3ez/5aQ0ymOM9qifqS8DjrxmE70ibY3ixTStKa4iDXtaAlvVNGl/fz i5SAefErD76CiV7LvBcXsUU6zVtx/U48Dqnf90= X-Sasl-enc: 988VxEdkc6bgT8M78rjo1fLwNPWNETlz040w43BM600T 1460913074 Received: from intern.anarazel.de (unknown [172.56.39.140]) by mail.messagingengine.com (Postfix) with ESMTPA id 1B7B968010D; Sun, 17 Apr 2016 13:11:14 -0400 (EDT) Date: Sun, 17 Apr 2016 10:07:36 -0700 From: Andres Freund To: Tom Lane Cc: pgsql-committers@postgresql.org Subject: Re: pgsql: Allow Pin/UnpinBuffer to operate in a lockfree manner. Message-ID: <20160417170736.hbly4drjqdhnb5rm@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: <9194.1460908908@sss.pgh.pa.us> 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 Hi, On 2016-04-17 12:01:48 -0400, 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. That's actually intentional. Alexander had changed those, and it made the patch a good bit harder to read because there's so many references. As the new thing is still a spinlock, just not a s_lock.[ch] style on, I don't see changing all that to be a significant benefit. - Andres -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers