]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - net/ceph/osdmap.c
libceph: apply_upmap()
authorIlya Dryomov <idryomov@gmail.com>
Wed, 21 Jun 2017 15:27:18 +0000 (17:27 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Fri, 7 Jul 2017 15:25:18 +0000 (17:25 +0200)
commit1c2e7b451b889bead46cef410a737d1767cd6f0b
treefeed3db675b4019f726ebb5dd68423022abae9bc
parent463bb8da5042c165bf50ae2688d251c5af26f3cf
libceph: apply_upmap()

Previously, pg_to_raw_osds() didn't filter for existent OSDs because
raw_to_up_osds() would filter for "up" ("up" is predicated on "exists")
and raw_to_up_osds() was called directly after pg_to_raw_osds().  Now,
with apply_upmap() call in there, nonexistent OSDs in pg_to_raw_osds()
output can affect apply_upmap().  Introduce remove_nonexistent_osds()
to deal with that.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
net/ceph/osdmap.c