]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: unify sources of no{up,down,in,out} flags into singleton helpers
authorxie xingguo <xie.xingguo@zte.com.cn>
Thu, 30 May 2019 06:42:23 +0000 (14:42 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Mon, 10 Jun 2019 00:39:45 +0000 (08:39 +0800)
commit668f3db140476bd987d6f9b61479890e7be02500
tree62f9f304c35371eab5d8e2c634ec7d8bba60af1a
parent67279624d82a63930c7ec939d4ff95b1ed28d31f
osd: unify sources of no{up,down,in,out} flags into singleton helpers

Currently there are various ways to set no{up,down,in,out} flags,
by osd, by crush node, or by device class.

Use traditional is_no{up,down,in,out} helper to catch-all,
and add special wrappers for certain internal consumers.

This way osd won't ignore the noup flag set by the new crush node,
device class, or any future sources.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
(cherry picked from commit 9d11a3a1c96edd4f38f4584ce76febf920763883)

Conflicts:
        slight conflict from the "Remove dependence on 'using namespac'" change,
        see https://github.com/ceph/ceph/pull/27255
src/crimson/osd/osd.cc
src/mon/OSDMonitor.cc
src/osd/OSD.cc
src/osd/OSDMap.h