]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
OSD: enable ms_fast_dispatch
authorGreg Farnum <greg@inktank.com>
Wed, 26 Mar 2014 22:04:39 +0000 (15:04 -0700)
committerGreg Farnum <greg@inktank.com>
Mon, 5 May 2014 22:29:20 +0000 (15:29 -0700)
commitfd2b57eac0acf298b1d65035f6b2f5ef23163aa7
tree4946674c0df4494a985c9a62aa038ef3c06e94be
parent62b2d43acb5d1d99cdcef0285278cbcf7757b69d
OSD: enable ms_fast_dispatch

We've been setting it up, now this patch actually adds a fast path for osd ops
which bypasses the osd_lock and should not block on any longly held locks. In
addition to the actual ms_fast_dispatch; we take advantage of the fast_notify
functions in order to create a Session for every peer, since that is now the
data structure around which we handle incoming Messages and waitlisting; and
fast_preprocess in order to track when a peer has already sent us a new map
(otherwise, if we see an op with a too-new epoch, we have to request it from
the monitor).

Signed-off-by: Samuel Just <sam.just@inktank.com>
Signed-off-by: Greg Farnum <greg@inktank.com>
src/osd/OSD.cc
src/osd/OSD.h