Sure and I think we might want to try something similar evenfor XLogFlush where we use LWLockAcquireOrWait forWALWriteLock, not sure how it will workout in that case asI/O is involved, but I think it is worth trying.
pgsql-hackers by date:
Соглашаюсь с условиями обработки персональных данных