]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd/cache/pwl/ssd/WriteLog: decrement m_bytes_allocated when retiring
authorIlya Dryomov <idryomov@gmail.com>
Wed, 28 Apr 2021 12:27:12 +0000 (14:27 +0200)
committerDeepika Upadhyay <dupadhya@redhat.com>
Tue, 2 Nov 2021 11:41:42 +0000 (17:11 +0530)
commit3d5d56d2c1d916ec75eb1f6a58fafd89f0af95d3
treeab620f206f76bfc43f61ed637ed239c3dfc6bb7b
parent338038a76e7e651530cfaca87ba8b862295ff4cf
librbd/cache/pwl/ssd/WriteLog: decrement m_bytes_allocated when retiring

Currently if ssd cache is filled to capacity, all future I/O hangs
indefinitely because even though the cache eventually becomes clean
and retires enough entries to get back under RETIRE_HIGH_WATER, this
isn't communicated to AbstractWriteLog::check_allocation().

trivial fix: indentation https://www.diffchecker.com/9Vg9hgdl
Fixes: https://tracker.ceph.com/issues/50560
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit e2bbf4167fc8816d329ceae5c07c9e61599d9a17)
src/librbd/cache/pwl/ssd/WriteLog.cc