summaryrefslogtreecommitdiffstats
path: root/net/ceph
diff options
context:
space:
mode:
authorYan, Zheng <zyan@redhat.com>2015-08-28 17:59:35 +0800
committerIlya Dryomov <idryomov@gmail.com>2015-09-08 23:14:29 +0300
commit6dd74e44dc1df85f125982a8d6591bc4a76c9f5d (patch)
treececacd6040f6ffbc93c5d65ac436ba719754357c /net/ceph
parent5fdb1389e1399d6801a8c5d10952ef4153039fb2 (diff)
downloadop-kernel-dev-6dd74e44dc1df85f125982a8d6591bc4a76c9f5d.zip
op-kernel-dev-6dd74e44dc1df85f125982a8d6591bc4a76c9f5d.tar.gz
libceph: set 'exists' flag for newly up osd
Signed-off-by: Yan, Zheng <zyan@redhat.com> Reviewed-by: Sage Weil <sage@redhat.com> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'net/ceph')
-rw-r--r--net/ceph/osdmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ceph/osdmap.c b/net/ceph/osdmap.c
index 4a31258..7d8f581 100644
--- a/net/ceph/osdmap.c
+++ b/net/ceph/osdmap.c
@@ -1300,7 +1300,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;
}
OpenPOWER on IntegriCloud