Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Yan, Zheng and committed by
Ilya Dryomov
6dd74e44 5fdb1389

+1 -1
+1 -1
net/ceph/osdmap.c
··· 1300 1300 ceph_decode_addr(&addr); 1301 1301 pr_info("osd%d up\n", osd); 1302 1302 BUG_ON(osd >= map->max_osd); 1303 - map->osd_state[osd] |= CEPH_OSD_UP; 1303 + map->osd_state[osd] |= CEPH_OSD_UP | CEPH_OSD_EXISTS; 1304 1304 map->osd_addr[osd] = addr; 1305 1305 } 1306 1306