]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
msg/async: avoid requeue racing with handle_write
authorHaomai Wang <haomai@xsky.com>
Sat, 27 May 2017 01:59:11 +0000 (09:59 +0800)
committerHaomai Wang <haomai@xsky.com>
Sat, 27 May 2017 02:44:24 +0000 (10:44 +0800)
commit8fb779c540ed9a336855a4ab917c6c8ffab37bdc
treea867522cf2b9df58c81b75e5b4dff420acf06751
parente9a81ba41c0a1f7add206425f130c1b6aba8d334
msg/async: avoid requeue racing with handle_write

when the thread is calling AsyncConnection::handle_write, another thread may
replace it and requeue all messages. Because we remove the write_lock
protection for handle_write caller, it may happen sent racing with out_q

Fix: http://tracker.ceph.com/issues/20093

Signed-off-by: Haomai Wang <haomai@xsky.com>
src/msg/async/AsyncConnection.cc