[pve-devel] [PATCH cluster 0/3] logging improvements

Fabian Grünbichler f.gruenbichler at proxmox.com
Thu Oct 1 10:53:23 CEST 2020


noticed while debugging the (as it turns out) missing lock issue that
qb_log is not thread-safe by default, this patch series switches to
threaded, non-blocking logging.

Fabian Grünbichler (3):
  pmxcfs: switch log domain to enum
  pmxcfs: set log domain in more places
  pmxcfs: enable QB log thread

 data/src/cfs-utils.h      | 36 ++++++++++++++++++++++++++++++++----
 data/src/dfsm.h           |  6 +++---
 data/src/loop.h           |  2 +-
 data/src/cfs-plug-func.c  |  2 ++
 data/src/cfs-plug-link.c  |  2 ++
 data/src/cfs-plug-memdb.c |  2 ++
 data/src/cfs-plug.c       |  2 ++
 data/src/cfs-utils.c      | 16 ++++++++--------
 data/src/confdb.c         |  3 ++-
 data/src/database.c       |  1 +
 data/src/dcdb.c           |  3 ++-
 data/src/dfsm.c           | 18 +++++++++++-------
 data/src/logger.c         |  2 ++
 data/src/loop.c           | 11 ++++++-----
 data/src/memdb.c          |  2 ++
 data/src/pmxcfs.c         | 21 ++++++++++++---------
 data/src/quorum.c         |  3 ++-
 data/src/server.c         |  1 +
 data/src/status.c         |  3 ++-
 19 files changed, 95 insertions(+), 41 deletions(-)

-- 
2.20.1






More information about the pve-devel mailing list