]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: don't require RWEXCL lock for stat+write ops. 45852/head
authorAlice Zhao <brucen1030@163.com>
Mon, 11 Apr 2022 12:35:57 +0000 (08:35 -0400)
committerAlice Zhao <brucen1030@163.com>
Wed, 15 Mar 2023 10:19:03 +0000 (06:19 -0400)
commit9be266b0a0304aaaaa0ca12f28fcd3e9cce1f9d7
tree1fdec6aa9052776218104f634ddfad83b9b07e72
parent4feeea0ebb7055b6defc912068688bf0e4f37eb5
osd: don't require RWEXCL lock for stat+write ops.
In librbd, a stat op is inserted before write op for cloned image. OSD used to use RWEXCL and such requests are processed one by one.
With this fix, OSD will use RWWRITE rather than RWEXCL for such [stat,write] request to allow multiple [stat,write] on the same object and improve performance.

Signed-off-by: Alice Zhao <brucen1030@163.com>
src/osd/OpRequest.h
src/osd/PrimaryLogPG.cc
src/osd/osd_op_util.cc
src/osd/osd_op_util.h
src/osd/osd_types.h