]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: Adjust lock type selection in PrimaryLogPG::get_rw_locks
authorMatty Williams <Matty.Williams@ibm.com>
Fri, 1 May 2026 11:07:36 +0000 (12:07 +0100)
committerMatty Williams <Matty.Williams@ibm.com>
Tue, 5 May 2026 15:33:24 +0000 (16:33 +0100)
commitd41db7301e2b75ce9b25421e034afffb7aeb1671
tree42862b9b803892986101c20b51f651bf9ca50f7b
parentb5d482262b9dedd76e6119289e0973e7235c7f81
osd: Adjust lock type selection in PrimaryLogPG::get_rw_locks

All writes in EC are asynchronous (even if they are only updating metadata), so Cls reads in EC must use the RWEXCL lock to eliminate the possibility of race conditions.
This resolves failures with Cls queue tests on EC pools where read operations were observed overtaking in-flight writes.

Fixes: https://tracker.ceph.com/issues/74531
Signed-off-by: Matty Williams <Matty.Williams@ibm.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