Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 320329
b: refs/heads/master
c: 3a140a0
h: refs/heads/master
i:
  320327: ad625be
v: v3
  • Loading branch information
Sage Weil committed Jul 31, 2012
1 parent 69bad52 commit 6090f7e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 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: 546f04ef716dd49521774653d8b032a7d64c05d9
refs/heads/master: 3a140a0d5c4b9e35373b016e41dfc85f1e526bdb
8 changes: 6 additions & 2 deletions trunk/net/ceph/messenger.c
Original file line number Diff line number Diff line change
Expand Up @@ -2287,14 +2287,18 @@ static void con_work(struct work_struct *work)
ret = try_read(con);
if (ret == -EAGAIN)
goto restart;
if (ret < 0)
if (ret < 0) {
con->error_msg = "socket error on read";
goto fault;
}

ret = try_write(con);
if (ret == -EAGAIN)
goto restart;
if (ret < 0)
if (ret < 0) {
con->error_msg = "socket error on write";
goto fault;
}

done:
mutex_unlock(&con->mutex);
Expand Down

0 comments on commit 6090f7e

Please sign in to comment.