[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <bc76af4e1436406a1f53da243e76bd10327691f2.1471589700.git.jslaby@suse.cz>
Date: Fri, 19 Aug 2016 09:10:08 +0200
From: Jiri Slaby <jslaby@...e.cz>
To: stable@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, "Yan Zheng" <zyan@...hat.com>,
Ilya Dryomov <idryomov@...il.com>, Jiri Slaby <jslaby@...e.cz>
Subject: [PATCH 3.12 009/100] libceph: set 'exists' flag for newly up osd
From: "Yan Zheng" <zyan@...hat.com>
3.12-stable review patch. If anyone has any objections, please let me know.
===============
commit 6dd74e44dc1df85f125982a8d6591bc4a76c9f5d upstream.
Signed-off-by: Yan Zheng <zyan@...hat.com>
Reviewed-by: Sage Weil <sage@...hat.com>
Signed-off-by: Ilya Dryomov <idryomov@...il.com>
Cc: Ilya Dryomov <idryomov@...il.com>
Signed-off-by: Jiri Slaby <jslaby@...e.cz>
---
net/ceph/osdmap.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/ceph/osdmap.c b/net/ceph/osdmap.c
index 7ec4e0522215..6317b5d669e6 100644
--- a/net/ceph/osdmap.c
+++ b/net/ceph/osdmap.c
@@ -923,7 +923,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;
}
--
2.9.3
Powered by blists - more mailing lists