Skip to content

cas_bd: Make cas_disk_open() exclusive - #1804

Merged
robertbaldyga merged 1 commit into
Open-CAS:masterfrom
robertbaldyga:disk-open-exclusive-fix
Sep 9, 2026
Merged

robertbaldyga merged 1 commit into
Open-CAS:masterfrom
robertbaldyga:disk-open-exclusive-fix

Conversation

@robertbaldyga

Copy link
Copy Markdown
Member

Track active openers by introducing claimed flag, and make sure there is only one active opener at any time.

We do it this way to separate cas_disk open exclusivity from the actual block device open/close, as the block device needs to survive in the opened state being deposited in the box and then claimed back by cas_disk_open().

Track active openers by introducing claimed flag, and make sure there
is only one active opener at any time.

We do it this way to separate cas_disk open exclusivity from the
actual block device open/close, as the block device needs to survive
in the opened state being deposited in the box and then claimed back
by cas_disk_open().

Signed-off-by: Robert Baldyga <robert.baldyga@unvertical.com>
@robertbaldyga
robertbaldyga merged commit b755634 into Open-CAS:master Sep 9, 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