diff options
author | Yan, Zheng <zyan@redhat.com> | 2015-08-28 17:59:35 +0800 |
---|---|---|
committer | Sasha Levin <alexander.levin@verizon.com> | 2016-08-07 21:59:06 -0400 |
commit | a717682647ed68a511260345d3aadb6a9b3c838a (patch) | |
tree | 607d461893eabab71aeb26eefd195dfc1436edba | |
parent | 5eaee47bcdf4f17e2bdd6105f12b6d5e567e72c4 (diff) | |
download | lwn-a717682647ed68a511260345d3aadb6a9b3c838a.tar.gz lwn-a717682647ed68a511260345d3aadb6a9b3c838a.zip |
libceph: set 'exists' flag for newly up osd
[ Upstream commit 6dd74e44dc1df85f125982a8d6591bc4a76c9f5d ]
Signed-off-by: Yan, Zheng <zyan@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
-rw-r--r-- | net/ceph/osdmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ceph/osdmap.c b/net/ceph/osdmap.c index b8c3fde5b04f..a9ec2e714c40 100644 --- a/net/ceph/osdmap.c +++ b/net/ceph/osdmap.c @@ -1275,7 +1275,7 @@ struct ceph_osdmap *osdmap_apply_incremental(void **p, void *end, ceph_decode_addr(&addr); pr_info("osd%d up\n", osd); BUG_ON(osd >= map->max_osd); - map->osd_state[osd] |= CEPH_OSD_UP; + map->osd_state[osd] |= CEPH_OSD_UP | CEPH_OSD_EXISTS; map->osd_addr[osd] = addr; } |