Skip to content

Commit

Permalink
ceph: fix osd request lru adjustment when sending request
Browse files Browse the repository at this point in the history
Fix argument order.  We want to move the item to the end of the list, not
change the position of the head.

Signed-off-by: Henry C Chang <henry_c_chang@tcloudcomputing.com>
Signed-off-by: Sage Weil <sage@newdream.net>
  • Loading branch information
Henry C Chang authored and Sage Weil committed Aug 23, 2010
1 parent 1245149 commit 07a27e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/ceph/osd_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,7 @@ static int __send_request(struct ceph_osd_client *osdc,
reqhead->reassert_version = req->r_reassert_version;

req->r_stamp = jiffies;
list_move_tail(&osdc->req_lru, &req->r_req_lru_item);
list_move_tail(&req->r_req_lru_item, &osdc->req_lru);

ceph_msg_get(req->r_request); /* send consumes a ref */
ceph_con_send(&req->r_osd->o_con, req->r_request);
Expand Down

0 comments on commit 07a27e2

Please sign in to comment.