diff options
author | Sage Weil <sage@inktank.com> | 2012-07-20 17:24:40 -0700 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2012-07-30 18:16:00 -0700 |
commit | 8dacc7da69a491c515851e68de6036f21b5663ce (patch) | |
tree | 72e96abb5bc27d2a185cdea2f08a090302f0ede3 /include/drm/drmP.h | |
parent | d7353dd5aaf22ed611fbcd0d4a4a12fb30659290 (diff) | |
download | op-kernel-dev-8dacc7da69a491c515851e68de6036f21b5663ce.zip op-kernel-dev-8dacc7da69a491c515851e68de6036f21b5663ce.tar.gz |
libceph: replace connection state bits with states
Use a simple set of 6 enumerated values for the socket states (CON_STATE_*)
and use those instead of the state bits. All of the con->state checks are
now under the protection of the con mutex, so this is safe. It also
simplifies many of the state checks because we can check for anything other
than the expected state instead of various bits for races we can think of.
This appears to hold up well to stress testing both with and without socket
failure injection on the server side.
Signed-off-by: Sage Weil <sage@inktank.com>
Diffstat (limited to 'include/drm/drmP.h')
0 files changed, 0 insertions, 0 deletions