]> git.baikalelectronics.ru Git - kernel.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>
Thu, 2 May 2013 04:17:15 +0000 (21:17 -0700)
commitc968580e76a5ffac73494cfdd295138af5c2f8f3
treec65c356996fcb0b58c5a9353011ae1cdc54ac577
parent38eb32eeba31b20847b958a3f8d1e75da53f9ab8
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