]> git.baikalelectronics.ru Git - kernel.git/commit
rbd: move ctl_mutex lock inside rbd_get_client()
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)
commit1aa48e2949f363d6104e4611e578d6bec5355ab0
treea520fd2d821202175749fc9a0dd9b1b4a1fa2ac8
parentf57ae095b1758ba75696d34b16b277d22ce47f12
rbd: move ctl_mutex lock inside rbd_get_client()

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

Furthermore, within rbd_get_client(), it appears the mutex only
needs to be held while calling rbd_client_create().  (Moving
the lock inside that function will wait for the next patch.)

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