From: Alex Elder Date: Fri, 10 Aug 2012 20:12:07 +0000 (-0700) Subject: rbd: handle locking inside __rbd_client_find() X-Git-Tag: v3.7-rc1~90^2~56 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1f7ba3311530993801d6877889efff0382bcd641;p=pandora-kernel.git rbd: handle locking inside __rbd_client_find() There is only caller of __rbd_client_find(), and it somewhat clumsily gets the appropriate lock and gets a reference to the existing ceph_client structure if it's found. Instead, have that function handle its own locking, and acquire the reference if found while it holds the lock. Drop the underscores from the name because there's no need to signify anything special about this function. Signed-off-by: Alex Elder Reviewed-by: Yehuda Sadeh --- Reading git-diff-tree failed