]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
libceph: wrap auth methods in a mutex
authorSage Weil <sage@inktank.com>
Mon, 25 Mar 2013 17:26:30 +0000 (10:26 -0700)
committerSage Weil <sage@inktank.com>
Mon, 25 Mar 2013 17:26:30 +0000 (10:26 -0700)
commit8383641e69f61a97ba7c878ce29a01970703f032
tree42489bbffd4343318444f080eb5e66d9ff588b3d
parent301866ce2cb94e1e18971c2f3c27994bc67026bf
libceph: wrap auth methods in a mutex

The auth code is called from a variety of contexts, include the mon_client
(protected by the monc's mutex) and the messenger callbacks (currently
protected by nothing).  Avoid chaos by protecting all auth state with a
mutex.  Nothing is blocking, so this should be simple and lightweight.

Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Alex Elder <elder@inktank.com>
include/linux/ceph/auth.h
net/ceph/auth.c