Skip to content

Commit

Permalink
ceph: reset osd session on fault, not peer_reset
Browse files Browse the repository at this point in the history
The peer_reset just takes longer (until we reconnect and discover the osd
dropped the session... which it will).

Signed-off-by: Sage Weil <sage@newdream.net>
  • Loading branch information
Sage Weil committed Oct 9, 2009
1 parent 991abb6 commit 81b024e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions fs/ceph/osd_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -294,10 +294,7 @@ __lookup_request_ge(struct ceph_osd_client *osdc,


/*
* The messaging layer will reconnect to the osd as needed. If the
* session has dropped, the OSD will have dropped the session state,
* and we'll get notified by the messaging layer. If that happens, we
* need to resubmit all requests for that osd.
* If the osd connection drops, we need to resubmit all requests.
*/
static void osd_reset(struct ceph_connection *con)
{
Expand Down Expand Up @@ -1301,7 +1298,7 @@ const static struct ceph_connection_operations osd_con_ops = {
.put = put_osd_con,
.dispatch = dispatch,
.alloc_msg = alloc_msg,
.peer_reset = osd_reset,
.fault = osd_reset,
.alloc_middle = ceph_alloc_middle,
.prepare_pages = prepare_pages,
};

0 comments on commit 81b024e

Please sign in to comment.