-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix updating hot cachelines cleaning list #458
Conversation
Codecov Report
@@ Coverage Diff @@
## master #458 +/- ##
==========================================
+ Coverage 62.85% 62.90% +0.05%
==========================================
Files 82 83 +1
Lines 9430 9447 +17
==========================================
+ Hits 5927 5943 +16
- Misses 3503 3504 +1
|
src/engine/engine_wb.c
Outdated
@@ -42,6 +43,9 @@ static void _ocf_write_wb_update_bits(struct ocf_request *req) | |||
|
|||
ocf_req_hash_unlock_wr(req); | |||
} | |||
|
|||
if (ocf_engine_mapped_count(req) > 0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So you will not call "set_hot" in case of full miss? I think it's incorrect.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I've changed the code to call set_hot() unconditionally because I couldn't came up with any scenario when a write IO would be submitted in WB and the timestamp shouldn't be updated.
Update cacheline's timestamp each time it's being written. Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
0793c98
to
fa41d4f
Compare
Update cacheline's timestamp each time it's being written.
Fixes #455
Signed-off-by: Michal Mielewczyk michal.mielewczyk@intel.com