]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: remove cmp&write sector size restriction
authorJonas Pfefferle <pepperjo@japf.ch>
Fri, 5 Aug 2022 17:36:36 +0000 (19:36 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Thu, 13 Oct 2022 11:11:38 +0000 (13:11 +0200)
commit3016e16199e31ebcb09d11500f26cd010bc157ae
tree88007f0855b8f5e86f27c8a232339410933de0f5
parentcef0990568bdf63cefc543a62186c18f7874e1a9
librbd: remove cmp&write sector size restriction

This patch removes the compare and write max sector size len
restriction. We can allow up to stripe unit size accesses if
the access is aligned properly.
To allow larger size compare and write requests in the
journal we split the buffers like we do for writes now.

Signed-off-by: Jonas Pfefferle <pepperjo@japf.ch>
(cherry picked from commit d80cff0dd665d660cd545c5a66d265b6bf732c73)
src/librbd/Journal.cc
src/librbd/Journal.h
src/librbd/io/ImageRequest.cc
src/test/librbd/io/test_mock_ImageRequest.cc
src/test/librbd/test_mock_Journal.cc