]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
librbd/cache/pwl/ssd: remove correct m_blocks_to_log_entries entry
authorFeng Hualong <hualong.feng@intel.com>
Wed, 28 Jul 2021 03:42:44 +0000 (11:42 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 13 Sep 2021 08:49:18 +0000 (10:49 +0200)
commit01bb75a1056d26ae43832d567087b3d67ab84261
tree64bf26d503ef1ce406b152b4b3737661d50a8c62
parent9cb2f444fd0eb67fafb7cea2c23f5b7ace201e62
librbd/cache/pwl/ssd: remove correct m_blocks_to_log_entries entry

When retiring, m_blocks_to_log_entries doesn't remove
corresponding write_entry (should be `*it` not `entry`)
that will be retired. It leads to read error. And
there should also consider discard entries.

Fixes: https://tracker.ceph.com/issues/52579
Signed-off-by: Feng Hualong <hualong.feng@intel.com>
src/librbd/cache/pwl/ssd/WriteLog.cc