]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: use deque instead of list for op wq to_process
authorSage Weil <sage@redhat.com>
Wed, 13 Sep 2017 20:29:22 +0000 (16:29 -0400)
committerSage Weil <sage@redhat.com>
Wed, 13 Sep 2017 20:29:22 +0000 (16:29 -0400)
Fewer allocations.

Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/OSD.h

index b864dda040ce104bc084ed09c84e5a676420e39f..52692f7057ce403af27e289dbcf21d6f10dd0af2 100644 (file)
@@ -1632,7 +1632,7 @@ private:
       OSDMapRef waiting_for_pg_osdmap;
       struct pg_slot {
        PGRef pg;                     ///< cached pg reference [optional]
-       list<PGQueueable> to_process; ///< order items for this slot
+       deque<PGQueueable> to_process; ///< order items for this slot
        int num_running = 0;          ///< _process threads doing pg lookup/lock
 
        /// true if pg does/did not exist. if so all new items go directly to