]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
blk/kernel: Only use file hint capabilities if available. 42040/head
authorWillem Jan Withagen <wjw@digiware.nl>
Wed, 7 Jul 2021 09:50:50 +0000 (11:50 +0200)
committerWillem Jan Withagen <wjw@digiware.nl>
Wed, 7 Jul 2021 09:50:50 +0000 (11:50 +0200)
commita1012b604d46c384eeeb76a43ea2bb48c6fedf06
treed6021bde0a1acadc5286c083701fd512bb4e92d7
parent5cd281a19650e4ce0e2909c52ca782f93ba8423b
blk/kernel: Only use file hint capabilities if available.

Without WRITE_LIFE capabilities, only one file is used.
And rocksdb sets this value also to > 0, so we need to catch this here
instead of trusting rocksdb to set write_hint.

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
src/blk/kernel/KernelDevice.cc