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

fix(cleanup,mempool): Cleanup mempool related thread while destroying a volume #301

Merged
merged 4 commits into from
Jan 10, 2020

Conversation

mynktl
Copy link
Contributor

@mynktl mynktl commented Jan 10, 2020

Signed-off-by: mayank [email protected]

@mynktl mynktl requested a review from vishnuitta January 10, 2020 14:29
Signed-off-by: mayank <[email protected]>
ASSERT0(get_num_entries_from_mempool(&spec->rcommon_deadlist));
destroy_rcommon_deadlist(spec);

pthread_cancel(spec->deadlist_cleanup_thread);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we set cancel_type as asynchronous? it seems - default is deferred and it needs cancellation point

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

       can be canceled at any time (usually immediately, but the system does not guarantee this).  Deferred cancelability means that cancellation will be delayed until the thread next calls a  func‐
       tion that is a cancellation point.  A list of functions that are or may be cancellation points is provided in pthreads(7).

Copy link
Contributor

@vishnuitta vishnuitta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changes are good

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