From: Sage Weil Date: Tue, 16 Feb 2010 00:22:28 +0000 (-0800) Subject: ceph: fix authentication races, auth_none oops X-Git-Tag: v2.6.34-rc2~9^2~31 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5ce6e9dbe6805ab8ee67e21936d17f431adc63c6;p=pandora-kernel.git 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: Sage Weil --- Reading git-diff-tree failed