OSDN Git Service

rbd: client_mutex is never nested
authorIlya Dryomov <idryomov@gmail.com>
Thu, 2 May 2019 13:56:00 +0000 (15:56 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Tue, 7 May 2019 17:43:04 +0000 (19:43 +0200)
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
drivers/block/rbd.c

index 612e4ae..99de716 100644 (file)
@@ -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);