Skip to content
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

v0.1.2: bug fixes #5

Merged
merged 7 commits into from
Mar 5, 2024
Merged

v0.1.2: bug fixes #5

merged 7 commits into from
Mar 5, 2024

Conversation

ming1
Copy link
Collaborator

@ming1 ming1 commented Mar 5, 2024

  • fix panic on assert!(host_cluster == off.0) in try_allocate_from()
  • fix IO hang in heavy write & fsync

Let debug handle API level & slow meta logging.

Signed-off-by: Ming Lei <[email protected]>
L1 table lock is just for preventing mapping table change from being
happened.

Signed-off-by: Ming Lei <[email protected]>
The helper is for flushing one kind of meta data, so rename it.

Signed-off-by: Ming Lei <[email protected]>
flush_meta() acquires self.l1table.read(), but ensure_l2_offset()
already holds self.l1table.write(), so deadlock is triggered.

Fix it by add flush_mapping() which accepts l1 table directly.

Signed-off-by: Ming Lei <[email protected]>
It isn't necessary to run flush_meta() concurrently, so add one mutex
to serialize flushing meta for simplifying meta flush.

Signed-off-by: Ming Lei <[email protected]>
If cluster in next refcount block is allocated, free the allocated and
retry.

TODO: re-investigate that why fixed allocation fails.

Signed-off-by: Ming Lei <[email protected]>
@ming1 ming1 merged commit d6c1645 into main Mar 5, 2024
6 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