Skip to content
Commit 5ce6e9db authored by Sage Weil's avatar Sage Weil
Browse files

ceph: fix authentication races, auth_none oops



Call __validate_auth() under monc->mutex, and use helper for
initial hello so that the pending_auth flag is set.  This fixes
possible races in which we have an authentication request (hello
or otherwise) pending and send another one.  In particular, with
auth_none, we _never_ want to call ceph_build_auth() from
__validate_auth(), since the ->build_request() method is NULL.

Signed-off-by: default avatarSage Weil <sage@newdream.net>
parent 85ff03f6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment