]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
msg/Pipe: associate sending msgs to con inside lock
authorSage Weil <sage@inktank.com>
Sat, 5 Jan 2013 18:39:08 +0000 (10:39 -0800)
committerSage Weil <sage@inktank.com>
Mon, 7 Jan 2013 04:38:25 +0000 (20:38 -0800)
commita058f16113efa8f32eb5503d5443aa139754d479
tree2063a89f1498d89da9c70fab1ad98c19c8777947
parent2a1eb466d3f8e25ec8906b3ca6118a14c4e269d2
msg/Pipe: associate sending msgs to con inside lock

Associate a sending message with the connection inside the pipe_lock.
This way if a racing thread tries to steal these messages it will
be sure to reset the con point *after* we do such that it the con
pointer is valid in encode_payload() (and later).

This may be part of #3678.

Signed-off-by: Sage Weil <sage@inktank.com>
src/msg/Pipe.cc