[libvirt] [PATCH 0/5] Fix virtlockd loosing locks

Daniel P. Berrangé berrange at redhat.com
Tue Mar 6 17:58:47 UTC 2018


This is a workaround for the bizarre behaviour whereby the kernel throws
away all fcntl() locks on execve()... if any threads are running. We
simply make virtlockd & virlogd single threaded instead.

Daniel P. Berrangé (5):
  rpc: push ref acquisition into RPC dispatch function
  rpc: simplify calling convention of virNetServerClientDispatchFunc
  rpc: invoke the message dispatch callback with client unlocked
  rpc: avoid crashing in pre-exec if no workers are present
  rpc: switch virtlockd and virtlogd to use single-threaded dispatch

 src/locking/lock_daemon.c    |  4 +--
 src/logging/log_daemon.c     |  4 +--
 src/rpc/virnetserver.c       | 29 ++++++++++------
 src/rpc/virnetserverclient.c | 81 ++++++++++++++++++++++++++++++--------------
 src/rpc/virnetserverclient.h |  9 +++--
 5 files changed, 83 insertions(+), 44 deletions(-)

-- 
2.14.3




More information about the libvir-list mailing list