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

bluestore: fix two wal bugs; reuse OnodeRefs when applying txc #7486

Merged
merged 12 commits into from Feb 6, 2016

Conversation

liewegas
Copy link
Member

@liewegas liewegas commented Feb 2, 2016

No description provided.

Do this in the caller to simplify the callees slightly.

Signed-off-by: Sage Weil <sage@redhat.com>
If the wal write starts partway into the tail block, we need to allocate
less than a full block.

Signed-off-by: Sage Weil <sage@redhat.com>
Get OnodeRef ready in the caller, and keep it in a vector so that it
can be reused for any subsequent operations in the transaction.

Signed-off-by: Sage Weil <sage@redhat.com>
Signed-off-by: Sage Weil <sage@redhat.com>
Signed-off-by: Sage Weil <sage@redhat.com>
If we set bdev_inject_crash, ensure we crash even if the device is
idle.

Signed-off-by: Sage Weil <sage@redhat.com>
msg/simple/Pipe.cc: In member function 'void Pipe::writer()':
msg/simple/Pipe.cc:1721:26: warning: suggest braces around empty body in an 'if' statement [-Wempty-body]
  if(::write(sd, &tag, 1));
                          ^

Signed-off-by: Sage Weil <sage@redhat.com>
This patch is mostly a wash, except that _rename now avoids doing the
_do_remove() work in the case where the object didn't exist before.

Reported-by: ie xingguo <xie.xingguo@zte.com.cn>
Signed-off-by: Sage Weil <sage@redhat.com>
We were failing to set o->enode, which meant that there were
multiple instances of the same enode alive at once.  Avoid this
category of bug by changing _txc_release to take the onode ref
and assign it there, and removing almost all of the local EnodeRef
instances.

Signed-off-by: Sage Weil <sage@redhat.com>
@liewegas
Copy link
Member Author

liewegas commented Feb 5, 2016

@xiexingguo whoops! fixed, thanks for pointing it out

This way we don't generate a core file, which spams the log and trips up
teuthology.

Signed-off-by: Sage Weil <sage@redhat.com>
liewegas added a commit that referenced this pull request Feb 6, 2016
osd: bluestore: fix two wal bugs; reuse OnodeRefs when applying txc

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
@liewegas liewegas merged commit 8697895 into master Feb 6, 2016
@liewegas liewegas deleted the wip-bluestore-oref branch February 6, 2016 01:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants