diff options
| author | 2017-01-31 15:55:06 +0100 | |
|---|---|---|
| committer | 2017-02-20 12:16:11 +0100 | |
| commit | 66a0e2d579dbec5c676cfe446234ffebb267c564 (patch) | |
| tree | 6a2d4307be3e39e4955697a49ed5daf6ea97d927 /include/linux/ceph | |
| parent | libceph: add osdmap_set_crush() helper (diff) | |
| download | linux-dev-66a0e2d579dbec5c676cfe446234ffebb267c564.tar.xz linux-dev-66a0e2d579dbec5c676cfe446234ffebb267c564.zip | |
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>
Diffstat (limited to 'include/linux/ceph')
| -rw-r--r-- | include/linux/ceph/osdmap.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/ceph/osdmap.h b/include/linux/ceph/osdmap.h index 412906609954..cef1cab789b9 100644 --- a/include/linux/ceph/osdmap.h +++ b/include/linux/ceph/osdmap.h @@ -175,6 +175,7 @@ struct ceph_osdmap { struct mutex crush_scratch_mutex; int crush_scratch_ary[CEPH_PG_MAX_SIZE * 3]; + void *crush_workspace; }; static inline bool ceph_osd_exists(struct ceph_osdmap *map, int osd) |
