]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
common: OutputDataSocket retakes mutex on error path
authorCasey Bodley <cbodley@redhat.com>
Thu, 6 Jun 2019 13:48:42 +0000 (09:48 -0400)
committerCasey Bodley <cbodley@redhat.com>
Thu, 6 Jun 2019 13:55:41 +0000 (09:55 -0400)
commit8645e24dd4fb3ecc9f02b34a1be916620b5f71b1
tree93c242ad7ee609c0ff7c5ad0dfac1049ddef9d8e
parent7a38429a08398e3e50d03fe3511305bd3a3b0bf2
common: OutputDataSocket retakes mutex on error path

the list of buffers is protected by mutex m_lock. when dump_data() fails
and puts unwritten buffers back into the list, it needs to reaquire the
lock

Fixes: http://tracker.ceph.com/issues/40188
Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/common/OutputDataSocket.cc