]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
osd: Fix EC cache invalidation bug
authorAlex Ainscow <aainscow@uk.ibm.com>
Tue, 22 Apr 2025 12:41:19 +0000 (13:41 +0100)
committerLaura Flores <lflores@ibm.com>
Wed, 9 Jul 2025 15:47:25 +0000 (15:47 +0000)
commit78a73e32a44ff06ae2674d255b55d91a86e75820
tree96cf710434f25174012c45dc5d43e56418f2cc0d
parent96a5af6df913c975760fd36164f912a79086843f
osd: Fix EC cache invalidation bug

With optimised EC, there were two bugs with cache invalidation:
1. If two invalidates were in the queue, its possible the second
invalidate might be cleared by the first.

2. Reads were being requested if size was being reduced.

Also, added a few debug improvements and some new asserts.

Signed-off-by: Alex Ainscow <aainscow@uk.ibm.com>
(cherry picked from commit 7fad8b94a7509d052e4f6f773fe718b18964c282)
src/osd/ECCommon.h
src/osd/ECExtentCache.cc
src/osd/ECExtentCache.h