Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1as7S9-0004Tf-Og for pgsql-committers@arkaria.postgresql.org; Mon, 18 Apr 2016 11:34:53 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1as7S8-0006US-SC for pgsql-committers@arkaria.postgresql.org; Mon, 18 Apr 2016 11:34:52 +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 1as7Rv-00062I-Qi for pgsql-committers@postgresql.org; Mon, 18 Apr 2016 11:34:39 +0000 Received: from mail-lf0-x231.google.com ([2a00:1450:4010:c07::231]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1as7Rr-0002Wj-OR for pgsql-committers@postgresql.org; Mon, 18 Apr 2016 11:34:39 +0000 Received: by mail-lf0-x231.google.com with SMTP id j11so212718280lfb.1 for ; Mon, 18 Apr 2016 04:34:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=SzT+bC4+JL67hie/xR6IC/GI/KMdBqauiXF6+Z6J7Eg=; b=mgcNnoB8ndNPi3BL6JyIayDYojAs3ZDPzaLOMOF07fMi+Co918MYlejK20NxgdV8fC yPeq36v8ztDpgI4t/viE83hNuiJDsqBtHzigL6RyRARqDOzLLN8AnZtywRihyTDYJiXD Fi+okgC2NPLLqAMgGHIwriTSiHAG2qa5cFcuIu1+tGIapXjFJOfZ4hOLN732We3AomsJ POeXasw/yvUPthciNtR1ZeZz9QrE2DzYHovuZAcb+hTApAVN/kXWo4RUx8EjjgMmIwaM Hq9lX5OOQk5t5TFwB+85U9hrHFXE9+GRDCrJGrDRH4asB0H/vrNyHWZDjsqDjR53kZzA Shng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=SzT+bC4+JL67hie/xR6IC/GI/KMdBqauiXF6+Z6J7Eg=; b=hyWF+VDnQKf8w0+RceiR+q7sY3QnNYvFDcmGCG/GQW59+Mq9VLbyhO+JvI9He+GSp6 +OlnDHxmVvrxDAx0h3p9jiGT8BCtcZa7x8NllrXt1DMC0d/53x1urYRm5gyzB2a+qnq1 Ib4U0asMODKgEwVr8CtQqEKbeO68U36eTuM+HCvWIWhRBnb0gu/wc++FZZ3fnV8yIHLj /ZjenfL+98a07Rn8sgPVLdaMwQJUfr/WxU7fOEY0aFqmvwCZanczYqAH16kERyzdrGaU b1GqGz6rQk7cnLRsjbEBPutwRHW9XWw91PEP3yJbkr22lFho967iZ4pQqxQ29pSt94vA yCCQ== X-Gm-Message-State: AOPr4FVnCC15KglpVcE7tD3sRGUxan56+/Yzn/w+NQe5fWDyEPbKcpy2UanKMPQbpRE/l8QaKr6+B2msbHc4VA== MIME-Version: 1.0 X-Received: by 10.112.167.3 with SMTP id zk3mr14148264lbb.116.1460979274741; Mon, 18 Apr 2016 04:34:34 -0700 (PDT) Received: by 10.112.4.234 with HTTP; Mon, 18 Apr 2016 04:34:34 -0700 (PDT) In-Reply-To: <9194.1460908908@sss.pgh.pa.us> References: <9194.1460908908@sss.pgh.pa.us> Date: Mon, 18 Apr 2016 07:34:34 -0400 Message-ID: Subject: Re: pgsql: Allow Pin/UnpinBuffer to operate in a lockfree manner. From: Robert Haas To: Tom Lane Cc: Andres Freund , pgsql-committers Content-Type: text/plain; charset=UTF-8 X-Pg-Spam-Score: -2.7 (--) 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 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. -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers