]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
crimson/{net,osd}: make ms_get_authorizer() sync
authorKefu Chai <kchai@redhat.com>
Mon, 4 Mar 2019 05:01:50 +0000 (13:01 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 20 Mar 2019 03:36:07 +0000 (11:36 +0800)
commitf22d433ad600608da3525a4946c7bdef170abd78
treeda6530c4fb5e80caf20e2a56a5074715f66ed65d
parent3a984b655a91e7f62f0fd5d9fe37fff77ec5218c
crimson/{net,osd}: make ms_get_authorizer() sync

the authorizer manager does not perform (significant) i/o for building
an authorizer. see CephXTicketHandler::build_authorizer(). what it does
is but read random bytes using getentropy(3) which uses getrandom(2).
getrandom(2) could potentially block if the system just boots and does
not have enough randomness. but i think it's safe to assume that we have
enough entrophy when crimson-osd starts.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crimson/CMakeLists.txt
src/crimson/net/Dispatcher.cc [deleted file]
src/crimson/net/Dispatcher.h
src/crimson/net/SocketConnection.cc
src/crimson/net/SocketConnection.h
src/crimson/osd/chained_dispatchers.cc
src/crimson/osd/chained_dispatchers.h