Skip to content

osd: fix require_same_peer_instance from fast_dispatch - #2249

Merged
athanatos merged 3 commits into
nextfrom
wip-9096
Aug 13, 2014
Merged

athanatos merged 3 commits into
nextfrom
wip-9096

Conversation

@liewegas

Copy link
Copy Markdown
Member

No description provided.

There is only one caller.

Signed-off-by: Sage Weil <[email protected]>
The mark-down of old peers needs to take the session_dispatch_lock in order
to safely clear the Session ref cycle.  However, for fast dispatch callers,
that lock is already held.  Pass a flag down from the callers indicating
whether we need to take the additional lock.

Fixes: #9096
Signed-off-by: Sage Weil <[email protected]>
@ghost

ghost commented Aug 13, 2014

Copy link
Copy Markdown

👍

@liewegas

Copy link
Copy Markdown
Member Author

almost, his patch added require_same_peer_instance, this removes require_up_osd_peer. basically moving the common elements of require_up_osd_peer and require_same_or_newer_map into require_same_peer_instance...

@ghost

ghost commented Aug 13, 2014

Copy link
Copy Markdown

ran ../qa/workunits/cephtool/test.sh --asok-does-not-need-root -t mon_osd a dozen of times with success.

@athanatos

Copy link
Copy Markdown
Contributor

Looks good to me.

athanatos pushed a commit that referenced this pull request Aug 13, 2014
osd: fix require_same_peer_instance from fast_dispatch

Reviewed-by: Samuel Just <[email protected]>
Reviewed-by: Loic Dachary <[email protected]>
@athanatos
athanatos merged commit 561208a into next Aug 13, 2014
@athanatos
athanatos deleted the wip-9096 branch August 13, 2014 17:48
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