HomeClusterLabs Projects

sam: Do not lock sam_register

Description

sam: Do not lock sam_register

sam_register is function which is really not intended to be
ever called in any other thread than main one so it is safe to not use
the lock to prevent possible problems with fork.

Special thanks to Christine Caulfield <ccaulfie@redhat.com> for
mentioning possible problems with mutex and fork.

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
Reviewed-by: Christine Caulfield <ccaulfie@redhat.com>

Details

Provenance
jfriesseAuthored on Mon, Sep 1, 3:22 AM
Parents
rC24ada5094911: cmapctl: Check return code of cmap_set_uint32
Branches
Unknown
Tags
Unknown
References
HEAD -> main