crush: remove mutable part of CRUSH map
authorIlya Dryomov <idryomov@gmail.com>
Tue, 31 Jan 2017 14:55:06 +0000 (15:55 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 20 Feb 2017 11:16:11 +0000 (12:16 +0100)
commit66a0e2d579dbec5c676cfe446234ffebb267c564
tree6a2d4307be3e39e4955697a49ed5daf6ea97d927
parent1b6a78b5b91cdc07cc0b940b458e90c86835cf73
crush: remove mutable part of CRUSH map

Then add it to the working state. It would be very nice if we didn't
have to take a lock to calculate a crush placement. By moving the
permutation array into the working data, we can treat the CRUSH map as
immutable.

Reflects ceph.git commit cbcd039651c0569551cb90d26ce27e1432671f2a.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
include/linux/ceph/osdmap.h
include/linux/crush/crush.h
include/linux/crush/mapper.h
net/ceph/crush/crush.c
net/ceph/crush/mapper.c
net/ceph/osdmap.c