mirror of
https://github.com/ceph/ceph
synced 2025-03-19 17:06:24 +00:00
Merge pull request #40050 from dillaman/wip-49690
librbd/io: send alloc_hint when compression hint is set Reviewed-by: Mykola Golub <mgolub@suse.com>
This commit is contained in:
commit
e7c6384bf3
@ -399,7 +399,8 @@ void AbstractObjectWriteRequest<I>::add_write_hint(
|
||||
neorados::WriteOp *wr) {
|
||||
I *image_ctx = this->m_ictx;
|
||||
std::shared_lock image_locker{image_ctx->image_lock};
|
||||
if (image_ctx->object_map == nullptr || !this->m_object_may_exist) {
|
||||
if (image_ctx->object_map == nullptr || !this->m_object_may_exist ||
|
||||
image_ctx->alloc_hint_flags != 0U) {
|
||||
ObjectRequest<I>::add_write_hint(*image_ctx, wr);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user