Feb - Mar 2021

4 commits
Use EVFILT_SIGNAL for kqueue latches.
1 Mar 2021Thomas Munromaster14beta1REL_19_STABLE14beta1REL_18_STABLE14beta1REL_17_STABLE14beta1REL_16_STABLE14beta1REL_15_STABLE14beta1REL_14_STABLE14beta1
LLM analysis, 100% surelanded as postedfrom patchset #5

Matches the fourth patch in #5, introducing EVFILT_SIGNAL and removing the kqueue self-pipe in src/backend/storage/ipc/latch.c; differences are whitespace and context adjusted for the preceding signalfd commit.

Use signalfd(2) for epoll latches.
1 Mar 2021Thomas Munromaster14beta1REL_19_STABLE14beta1REL_18_STABLE14beta1REL_17_STABLE14beta1REL_16_STABLE14beta1REL_15_STABLE14beta1REL_14_STABLE14beta1
LLM analysis, 100% suremodified before commitmoderate changesfrom patchset #50 of 1 reviewer saw the final version

Matches the third patch in #5, with SFD_CLOEXEC added to signalfd creation, redundant block braces removed, and comments corrected in src/backend/storage/ipc/latch.c. Thomas explicitly reports the added flag in #6.

  • Andres Freundsaw an earlier versiontrailerThomas credits Andres with identifying the EXEC_BACKEND initialization-order fix and the excessive syscalls from raise() in #5, establishing review of #4 before those logic changes and the subsequent SFD_CLOEXEC addition.
Optimize latches to send fewer signals.
28 Feb 2021Thomas Munromaster14beta1REL_19_STABLE14beta1REL_18_STABLE14beta1REL_17_STABLE14beta1REL_16_STABLE14beta1REL_15_STABLE14beta1REL_14_STABLE14beta1
LLM analysis, 100% surelanded as postedfrom patchset #51 of 1 reviewer saw the final version

The code diff exactly matches the first patch in #5, adding maybe_sleeping and memory barriers to suppress unnecessary signals. Its Author credit and #1 identify Andres Freund as the author, with a memory-barrier adjustment by Thomas; Andres sent no message in this thread.

  • Thomas Munrosaw the final versioncommittercommitted the patch
Use SIGURG rather than SIGUSR1 for latches.
28 Feb 2021Thomas Munromaster14beta1REL_19_STABLE14beta1REL_18_STABLE14beta1REL_17_STABLE14beta1REL_16_STABLE14beta1REL_15_STABLE14beta1REL_14_STABLE14beta1
LLM analysis, 100% surelanded as postedfrom patchset #5

The code diff matches the second patch in #5, separating latch wakeups onto SIGURG, installing the handler in InitializeLatchSupport(), and adding ShutdownLatchSupport().

Credits across 4 commits

Author
Thomas MunroLLM3
Andres Freund1
Reviewer
Andres Freund1
Thomas Munrocommitter1
Committer
Thomas Munro4

N LLM means N of the credits come from LLM analysis, not from commit trailers.