]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
common: OutputDataSocket retakes mutex on error path 29147/head
authorCasey Bodley <cbodley@redhat.com>
Thu, 6 Jun 2019 13:48:42 +0000 (09:48 -0400)
committerPrashant D <pdhange@redhat.com>
Sun, 21 Jul 2019 23:06:49 +0000 (19:06 -0400)
commit43e3920a7be123cee1e0bc6c1fafcdeff696bbe7
tree036c481d65a497c39a21d7b42e20a6cc762dafe7
parenta7a380a44f295d3e685d332fe3e0e65c49902320
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>
(cherry picked from commit 8645e24dd4fb3ecc9f02b34a1be916620b5f71b1)
src/common/OutputDataSocket.cc