]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mds: move session setup to ms_handle_accept
authorPatrick Donnelly <pdonnell@redhat.com>
Wed, 30 Jan 2019 23:52:06 +0000 (15:52 -0800)
committerPatrick Donnelly <pdonnell@redhat.com>
Thu, 31 Jan 2019 19:29:34 +0000 (11:29 -0800)
commitc2405957edc3f837ee92a661557f36555d6b1785
tree895114906f14683a954b983d3cfc5b4724604d0c
parent727c5aff99103c355982f577048d17413ec2fffc
mds: move session setup to ms_handle_accept

Session setup in ms_handle_authentication is (historically) racy where multiple
connections from the same client can come in before one is finally accepted.  A
session should only be created after ms_handle_accept. The MDS did some
backflips before this commit to ensure this.

Moreover, with the msgr2 changes, it is even more necessary since the address
nonce is not set until before ms_handle_accept is called.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
src/mds/MDSAuthCaps.h
src/mds/MDSDaemon.cc
src/mds/MDSDaemon.h
src/msg/Messenger.cc