]> git.baikalelectronics.ru Git - kernel.git/commit
libceph: fix protocol feature mismatch failure path
authorSage Weil <sage@inktank.com>
Fri, 28 Dec 2012 02:27:04 +0000 (20:27 -0600)
committerAlex Elder <elder@inktank.com>
Fri, 28 Dec 2012 02:27:04 +0000 (20:27 -0600)
commitd4a7867f8842fd788a5bf616704da7d7d414dbea
treee9768481dfd72099c1615a357c4e2f489d596d68
parent541ab0d9e0f7147b489570c42ea7ee96f7c2bf15
libceph: fix protocol feature mismatch failure path

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>
net/ceph/messenger.c