]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite77e4b2191ef8c29733f90e7b161646383354703
tree196d43864c2c1033b30d4ae03cb946793cf29b19
parentfe1f714693d3c0c72bb98ef8f1eeed496ec5679c
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