Skip to content

Use locking for bitmaps to avoid race conditions#47

Open
LennartF22 wants to merge 1 commit into
rgouicem:v6.5.7from
LennartF22:bugfix-bitmap-lock
Open

Use locking for bitmaps to avoid race conditions#47
LennartF22 wants to merge 1 commit into
rgouicem:v6.5.7from
LennartF22:bugfix-bitmap-lock

Conversation

@LennartF22

Copy link
Copy Markdown
Contributor

Prevent concurrent access to the ifree and bfree bitmaps by adding a file system wide mutex for each bitmap. Before, race conditions, which potentially corrupt the whole file system, could occur.

Prevent concurrent access to the ifree and bfree bitmaps by adding
a file system wide mutex for each bitmap. Before, race conditions,
which potentially corrupt the whole file system, could occur.
@pjungkamp

Copy link
Copy Markdown
Contributor

The critical sections should be protected using sb_start_write and sb_end_write and their siblings. That should suffice to protect the bitmaps. But ouichefs would need way more than that to be correct on a SMP system anyway.

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