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

filestore: fix force_sync race with mount + umount + mount #2274

Merged
merged 2 commits into from Aug 21, 2014
Merged

Conversation

liewegas
Copy link
Member

No description provided.

Consider:

 - mount
 - sync_entry is doing some work
 - umount
   - set force_sync = true
   - set done = true
 - sync_entry exits (due to done)
   - ..but does not set force_sync = false
 - mount
 - journal replay starts
 - sync_entry sees force_sync and does a commit while op_seq == 0
 ...crash...

Fixes: #9144
Backport: firefly, dumpling
Signed-off-by: Sage Weil <sage@redhat.com>
Just to avoid confusion with start_sync(Context*c), which is totally
different.

Signed-off-by: Sage Weil <sage@redhat.com>
dzafman pushed a commit that referenced this pull request Aug 21, 2014
filestore: fix force_sync race with mount + umount + mount

Reviewed-by: David Zafman <dzafman@redhat.com>
@dzafman dzafman merged commit 7e4b525 into master Aug 21, 2014
@liewegas liewegas deleted the wip-9144 branch August 25, 2014 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants