Re: pgsql: Allow Pin/UnpinBuffer to operate in a lockfree manner.

Поиск
Список
Период
Сортировка
От Alexander Korotkov
Тема Re: pgsql: Allow Pin/UnpinBuffer to operate in a lockfree manner.
Дата
Msg-id CAPpHfdusvQcvN++DOXp_+JPAGv=vU4b19zP_JZa8Hdfq8Y536Q@mail.gmail.com
обсуждение исходный текст
Ответ на Re: pgsql: Allow Pin/UnpinBuffer to operate in a lockfree manner.  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: pgsql: Allow Pin/UnpinBuffer to operate in a lockfree manner.  (Andres Freund <andres@anarazel.de>)
Список pgsql-committers
On Mon, Apr 18, 2016 at 2:34 PM, Robert Haas <robertmhaas@gmail.com> wrote:
On Sun, Apr 17, 2016 at 12:01 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Andres Freund <andres@anarazel.de> 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"?
If so, I can provide a patch for it.

------
Alexander Korotkov
Postgres Professional: http://www.postgrespro.com
The Russian Postgres Company 

В списке pgsql-committers по дате отправления:

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: pgsql: Allow Pin/UnpinBuffer to operate in a lockfree manner.
Следующее
От: Andres Freund
Дата:
Сообщение: Re: pgsql: Allow Pin/UnpinBuffer to operate in a lockfree manner.