rbd: move ctl_mutex lock inside rbd_client_create()
authorAlex Elder <elder@dreamhost.com>
Sun, 29 Jan 2012 19:57:44 +0000 (13:57 -0600)
committerAlex Elder <elder@dreamhost.com>
Thu, 22 Mar 2012 15:47:47 +0000 (10:47 -0500)
commitbc534d86be71aaf8dfac46131420ab1c47387d42
tree196d43864c2c1033b30d4ae03cb946793cf29b19
parentd97081b0c7bdb55371994cc6690217bf393eb63e
rbd: move ctl_mutex lock inside rbd_client_create()

Since rbd_client_create() is only called in one place, move the
acquisition of the mutex around that call inside that function.

Signed-off-by: Alex Elder <elder@dreamhost.com>
Signed-off-by: Sage Weil <sage@newdream.net>
drivers/block/rbd.c