]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: Add option to allow disabling issuing alloc hint 4983/head
authorHaomai Wang <haomaiwang@gmail.com>
Wed, 17 Jun 2015 14:04:52 +0000 (22:04 +0800)
committerHaomai Wang <haomaiwang@gmail.com>
Wed, 17 Jun 2015 14:04:52 +0000 (22:04 +0800)
commit350f43ef0d5a9ff8da447abedf468c53a3fd61c3
tree183f98dd4ec8fb68a2d39e0248356b8eb7aa6555
parent5a5dc5f0aa79672c3613c08edb2e148196506901
librbd: Add option to allow disabling issuing alloc hint

For HDD osd backend, a alloc hint is good for local filesystem to ensure
extent continuous. But for SSD, the available capacity is useful and
precious, user may not expect lots of capacity is used by reserving.
Then ssd is good for random rw.

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
src/common/config_opts.h
src/librbd/AioRequest.cc
src/librbd/ImageCtx.cc
src/librbd/ImageCtx.h