diff options
author | Ilya Dryomov <ilya.dryomov@inktank.com> | 2014-01-31 19:54:26 +0400 |
---|---|---|
committer | Yan, Zheng <zheng.z.yan@intel.com> | 2014-04-03 06:33:50 +0400 |
commit | 9d521470a40f16110bd31018034155c60c1a1275 (patch) | |
tree | 0dd56756c47839cd9605262ddca0f91c12c07c67 /drivers/misc | |
parent | 455c6fdbd219161bd09b1165f11699d6d73de11c (diff) | |
download | linux-9d521470a40f16110bd31018034155c60c1a1275.tar.xz |
libceph: a per-osdc crush scratch buffer
With the addition of erasure coding support in the future, scratch
variable-length array in crush_do_rule_ary() is going to grow to at
least 200 bytes on average, on top of another 128 bytes consumed by
rawosd/osd arrays in the call chain. Replace it with a buffer inside
struct osdmap and a mutex. This shouldn't result in any contention,
because all osd requests were already serialized by request_mutex at
that point; the only unlocked caller was ceph_ioctl_get_dataloc().
Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
Diffstat (limited to 'drivers/misc')
0 files changed, 0 insertions, 0 deletions