Skip to content

Conversation

@akiradeveloper
Copy link
Owner

When cache cells are fulfilled, injection work is queued. Before cells are injected, they may be cancelled by the foreground path. Therefore, atomic type should be used.

When cache cells are fulfilled, injection work is queued.
Before cells are injected, they may be cancelled by the foreground path.
Therefore, atomic type should be used.

Signed-off-by: Akira Hayakawa <ruby.wktk@gmail.com>
@akiradeveloper akiradeveloper self-assigned this Jan 10, 2025
A cache cell is reserved only when it is cache-miss (and the bio is 4KB
large) and if there were some writes on the block, it is cancelled.
Therefore, we can't find any valid cache cell on cache-hit.

Signed-off-by: Akira Hayakawa <ruby.wktk@gmail.com>
Signed-off-by: Akira Hayakawa <ruby.wktk@gmail.com>
Signed-off-by: Akira Hayakawa <ruby.wktk@gmail.com>
Signed-off-by: Akira Hayakawa <ruby.wktk@gmail.com>
@akiradeveloper akiradeveloper merged commit 7f61410 into master Jan 11, 2025
1 check passed
@akiradeveloper akiradeveloper deleted the fix-read-cache branch January 11, 2025 01:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants