Skip to content

Commit

Permalink
libceph: eliminate connection state "DEAD"
Browse files Browse the repository at this point in the history
The ceph connection state "DEAD" is never set and is therefore not
needed.  Eliminate it.

Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Yehuda Sadeh <yehuda@inktank.com>
  • Loading branch information
Alex Elder authored and Alex Elder committed Jun 1, 2012
1 parent 28c0254 commit e5e372d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion include/linux/ceph/messenger.h
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ struct ceph_msg_pos {
#define CLOSED 10 /* we've closed the connection */
#define SOCK_CLOSED 11 /* socket state changed to closed */
#define OPENING 13 /* open connection w/ (possibly new) peer */
#define DEAD 14 /* dead, about to kfree */
#define BACKOFF 15

/*
Expand Down
6 changes: 0 additions & 6 deletions net/ceph/messenger.c
Original file line number Diff line number Diff line change
Expand Up @@ -2087,12 +2087,6 @@ static int try_read(struct ceph_connection *con)
*/
static void queue_con(struct ceph_connection *con)
{
if (test_bit(DEAD, &con->state)) {
dout("queue_con %p ignoring: DEAD\n",
con);
return;
}

if (!con->ops->get(con)) {
dout("queue_con %p ref count 0\n", con);
return;
Expand Down

0 comments on commit e5e372d

Please sign in to comment.