sctp: Switch back to a non-recursive mutex and don't hold it while calling any usrsct...
authorSebastian Dröge <sebastian@centricular.com>
Thu, 6 Feb 2020 14:42:01 +0000 (16:42 +0200)
committerSebastian Dröge <slomo@coaxion.net>
Wed, 12 Feb 2020 16:11:15 +0000 (16:11 +0000)
commit4c5c6e68c6caff1d7eb9aa52226b0ced63ea0369
tree723cf4fcc9625e0c8ecbfa468aad971021a12dfc
parentf6cdb91f55e22ddf82736cd4011a47b33c28400f
sctp: Switch back to a non-recursive mutex and don't hold it while calling any usrsctp functions

The library is thread-safe by itself and potentially calls back into our
code, not only from the same thread but also from other threads. This
can easily lead to deadlocks if we try to hold our mutex on both sides.
ext/sctp/sctpassociation.c
ext/sctp/sctpassociation.h