Skip to content

[v26.03.3] Limit read lock holders - #969

Merged
robertbaldyga merged 2 commits into
Open-CAS:v26.03.3.rcfrom
robertbaldyga:v26.03.3-limit-read-lock-holders
Aug 19, 2026
Merged

[v26.03.3] Limit read lock holders#969
robertbaldyga merged 2 commits into
Open-CAS:v26.03.3.rcfrom
robertbaldyga:v26.03.3-limit-read-lock-holders

Conversation

@robertbaldyga

Copy link
Copy Markdown
Member

No description provided.

The access counter is 8 bit wide and its top value is reserved for the
write lock, so no more than OCF_CACHE_LINE_ACCESS_MAX_RD readers can hold
the entry at the same time. Incrementing the counter beyond that limit
would make the entry indistinguishable from a write locked one, so the
excess readers have to be put on the waiters list instead.

Signed-off-by: Robert Baldyga <robert.baldyga@unvertical.com>
Signed-off-by: Robert Baldyga <robert.baldyga@unvertical.com>
@robertbaldyga
robertbaldyga merged commit d537701 into Open-CAS:v26.03.3.rc Aug 19, 2026
5 checks passed
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.

1 participant