]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: remove CDir::pop_spread
authorPatrick Donnelly <pdonnell@redhat.com>
Thu, 17 Feb 2022 20:03:52 +0000 (15:03 -0500)
committerPatrick Donnelly <pdonnell@redhat.com>
Sat, 11 Jun 2022 13:50:21 +0000 (09:50 -0400)
commit165fdc96e461ebc72b7ce0c516003fd81c653ff5
tree40a3c35d691f4eb281df0ecfd316f605a5d9864e
parentd678792dbb7b4a4e55a25bf9d61149ac8dfcddba
mds: remove CDir::pop_spread

This is a old artifact of when it was thought MDS requests would be
forwarded. It seemed good to track popularity based on who sent the
request. So, "who" is almost always -1. Because of this, a directory's
CDir::pop_spread is never actually hit. This has the side-effect of
preventing any replication except from hits from open/getattr!

Instead of using pop_spread, just use CDir::pop_me. Also, replicate
for any read load including READDIR.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
src/mds/CDir.cc
src/mds/CDir.h
src/mds/MDBalancer.cc
src/mds/MDBalancer.h
src/mds/Server.cc
src/mds/mdstypes.h