]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
libceph: keep request lists in tid order
authorAlex Elder <elder@inktank.com>
Mon, 25 Mar 2013 23:16:11 +0000 (18:16 -0500)
committerAlex Elder <elder@inktank.com>
Tue, 26 Mar 2013 19:13:04 +0000 (14:13 -0500)
commited3f1e863ba1a70c788ecf1a01e9f711bc806d0d
treed93f7fe5472fd5dc687a39e73e42bdf2b5dbd24f
parentc58d8e4ad934bacbdd43a356bf124523240fdc7d
libceph: keep request lists in tid order

In __map_request(), when adding a request to an osd client's unsent
list, add it to the tail rather than the head.  That way the newest
entries (with the highest tid value) will be last.

Maintain an osd's request list in order of increasing tid also.

Finally--to be consistent--maintain an osd client's "notarget" list
in that order as well.

This partially resolves:
    http://tracker.ceph.com/issues/4392

Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-off-by: Sage Weil <sage@inktank.com>
net/ceph/osd_client.c