summaryrefslogtreecommitdiff
path: root/drivers/block
diff options
context:
space:
mode:
authorIlya Dryomov <idryomov@gmail.com>2019-05-02 15:56:00 +0200
committerIlya Dryomov <idryomov@gmail.com>2019-05-07 19:43:04 +0200
commita32e414325c2f0d430436e4708a33c756b082fd8 (patch)
tree5643f6427b84353a7cdc3d6a2c883c7235edf406 /drivers/block
parent5ddc61fc145861e4e542c9273a4088b627ba9b8d (diff)
rbd: client_mutex is never nested
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'drivers/block')
-rw-r--r--drivers/block/rbd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/rbd.c b/drivers/block/rbd.c
index 612e4aecfa7f..99de7166bf89 100644
--- a/drivers/block/rbd.c
+++ b/drivers/block/rbd.c
@@ -934,7 +934,7 @@ static struct rbd_client *rbd_get_client(struct ceph_options *ceph_opts)
struct rbd_client *rbdc;
int ret;
- mutex_lock_nested(&client_mutex, SINGLE_DEPTH_NESTING);
+ mutex_lock(&client_mutex);
rbdc = rbd_client_find(ceph_opts);
if (rbdc) {
ceph_destroy_options(ceph_opts);