From: Ilya Dryomov Date: Thu, 2 May 2019 13:56:00 +0000 (+0200) Subject: rbd: client_mutex is never nested X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=a32e414325c2f0d430436e4708a33c756b082fd8;p=linux.git rbd: client_mutex is never nested Signed-off-by: Ilya Dryomov --- diff --git a/drivers/block/rbd.c b/drivers/block/rbd.c index 612e4aecfa7f6..99de7166bf89b 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);