]> Sergey Matveev's repositories - public-inbox.git/commit
lei: avoid deadlock on inotify/EVFILT_VNODE wakeups
authorEric Wong <e@80x24.org>
Tue, 19 Jul 2022 22:42:52 +0000 (22:42 +0000)
committerEric Wong <e@80x24.org>
Wed, 20 Jul 2022 03:54:27 +0000 (03:54 +0000)
commit49684178901a3d5db198032da1bb831b2b3e0b65
tree7c19828248f589d06cb34fbfb69cee129c4e1366
parent840785917bc74c8e7df226463144185294047d75
lei: avoid deadlock on inotify/EVFILT_VNODE wakeups

Enqueuing "note-event" requests from the DS event loop must
not wait on workers being able to drain the queue quickly
enough.  Thus we make the SOCK_SEQPACKET writes nonblocking
and rely on the lei-daemon event loop to enqueue writes.

This is a unique problem for "note-event" since it reuses
workers in between commands, while most lei commands currently
fork off new workers.
MANIFEST
lib/PublicInbox/IPC.pm
lib/PublicInbox/LeiNoteEvent.pm
lib/PublicInbox/WQBlocked.pm [new file with mode: 0644]