Commit 07a27e22 authored by Henry C Chang's avatar Henry C Chang Committed by Sage Weil

ceph: fix osd request lru adjustment when sending request

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: default avatarHenry C Chang <henry_c_chang@tcloudcomputing.com>
Signed-off-by: default avatarSage Weil <sage@newdream.net>
parent 12451491
...@@ -661,7 +661,7 @@ static int __send_request(struct ceph_osd_client *osdc, ...@@ -661,7 +661,7 @@ static int __send_request(struct ceph_osd_client *osdc,
reqhead->reassert_version = req->r_reassert_version; reqhead->reassert_version = req->r_reassert_version;
req->r_stamp = jiffies; 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_msg_get(req->r_request); /* send consumes a ref */
ceph_con_send(&req->r_osd->o_con, req->r_request); ceph_con_send(&req->r_osd->o_con, req->r_request);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment