]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd/io: conditionally disable move optimization 39958/head
authorJason Dillaman <dillaman@redhat.com>
Thu, 4 Feb 2021 16:17:48 +0000 (11:17 -0500)
committerNathan Cutler <ncutler@suse.com>
Tue, 9 Mar 2021 19:59:10 +0000 (20:59 +0100)
commit22662d7b1d0af8a123b79e9060d692fa7c1fc2fb
treec9c770dad9921b675d7174769598b00a2d842008
parent1ff7d244fcbc15312e010f47e19e0e96c819755d
librbd/io: conditionally disable move optimization

If the requested write length does not match the provided bufferlist
length, disable the move optimization and instead fallback to creating
a new sub-bufferlist for the object request.

Fixes: https://tracker.ceph.com/issues/49173
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 8dbb4a3d971d9a48c171f161f531956dd0030403)
src/librbd/io/ImageRequest.cc