[OpenSIPS-Devel] [OpenSIPS/opensips] 48023a: clusterer: fix processes serialization when fetchi...

Vlad Pătrașcu noreply at github.com
Tue Mar 5 07:28:31 EST 2019


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 48023acfe5a88cb36093c29596169eccb6ce38ee
      https://github.com/OpenSIPS/opensips/commit/48023acfe5a88cb36093c29596169eccb6ce38ee
  Author: Vlad Patrascu <vladp at opensips.org>
  Date:   2019-03-05 (Tue, 05 Mar 2019)

  Changed paths:
    M modules/clusterer/sharing_tags.c

  Log Message:
  -----------
  clusterer: fix processes serialization when fetching sharing tag state

High contention on a RW lock aquired for switchable reading has the same
downsides as direclty aquring it for writing. This commit improves this
by switching from read to write in separate steps, with basic rw lock
lock ops (start/stop read/write).





More information about the Devel mailing list