From: Henry C Chang Date: Mon, 23 Aug 2010 04:34:27 +0000 (-0700) Subject: ceph: fix osd request lru adjustment when sending request X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=07a27e226d1ed210d2d4218bd0642b40f5405c6a;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git 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: Henry C Chang Signed-off-by: Sage Weil --- diff --git a/fs/ceph/osd_client.c b/fs/ceph/osd_client.c index bed6391e52c..dfced1dacbc 100644 --- a/fs/ceph/osd_client.c +++ b/fs/ceph/osd_client.c @@ -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);