Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 320361
b: refs/heads/master
c: 3b5ede0
h: refs/heads/master
i:
  320359: 6fd7286
v: v3
  • Loading branch information
Sage Weil committed Jul 31, 2012
1 parent 4b0e502 commit 10bd191
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 070c633f60c23a89c226eb696f4a17b08a164b10
refs/heads/master: 3b5ede07b55b52c3be27749d183d87257d032065
14 changes: 7 additions & 7 deletions trunk/net/ceph/messenger.c
Original file line number Diff line number Diff line change
Expand Up @@ -2330,22 +2330,23 @@ static void con_work(struct work_struct *work)
*/
static void ceph_fault(struct ceph_connection *con)
{
mutex_lock(&con->mutex);

pr_err("%s%lld %s %s\n", ENTITY_NAME(con->peer_name),
ceph_pr_addr(&con->peer_addr.in_addr), con->error_msg);
dout("fault %p state %lu to peer %s\n",
con, con->state, ceph_pr_addr(&con->peer_addr.in_addr));

if (test_bit(LOSSYTX, &con->flags)) {
dout("fault on LOSSYTX channel\n");
goto out;
}

mutex_lock(&con->mutex);
if (test_bit(CLOSED, &con->state))
goto out_unlock;

con_close_socket(con);

if (test_bit(LOSSYTX, &con->flags)) {
dout("fault on LOSSYTX channel\n");
goto out_unlock;
}

if (con->in_msg) {
BUG_ON(con->in_msg->con != con);
con->in_msg->con = NULL;
Expand Down Expand Up @@ -2392,7 +2393,6 @@ static void ceph_fault(struct ceph_connection *con)

out_unlock:
mutex_unlock(&con->mutex);
out:
/*
* in case we faulted due to authentication, invalidate our
* current tickets so that we can get new ones.
Expand Down

0 comments on commit 10bd191

Please sign in to comment.