From: Sage Weil Date: Wed, 13 Sep 2017 20:29:22 +0000 (-0400) Subject: osd: use deque instead of list for op wq to_process X-Git-Tag: v13.0.1~883^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=67d3e510c2e903fd1bd84db00fcd076f88a9d53a;p=ceph-ci.git osd: use deque instead of list for op wq to_process Fewer allocations. Signed-off-by: Sage Weil --- diff --git a/src/osd/OSD.h b/src/osd/OSD.h index b864dda040c..52692f7057c 100644 --- a/src/osd/OSD.h +++ b/src/osd/OSD.h @@ -1632,7 +1632,7 @@ private: OSDMapRef waiting_for_pg_osdmap; struct pg_slot { PGRef pg; ///< cached pg reference [optional] - list to_process; ///< order items for this slot + deque 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