diff options
author | Sage Weil <sage@inktank.com> | 2012-12-27 20:27:04 -0600 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-01-17 08:46:48 -0800 |
commit | 39cebb4027204a30ba2f65befbeff1ff569d3968 (patch) | |
tree | 1c68bb9a49090fa2fbeeb863ab6866b2956fd7be /lib/spinlock_debug.c | |
parent | 7d70ef5bba98643d31917590bea352c9857ddbc7 (diff) |
libceph: fix protocol feature mismatch failure path
(cherry picked from commit 0fa6ebc600bc8e830551aee47a0e929e818a1868)
We should not set con->state to CLOSED here; that happens in
ceph_fault() in the caller, where it first asserts that the state
is not yet CLOSED. Avoids a BUG when the features don't match.
Since the fail_protocol() has become a trivial wrapper, replace
calls to it with direct calls to reset_connection().
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Alex Elder <elder@inktank.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/spinlock_debug.c')
0 files changed, 0 insertions, 0 deletions