[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20200916062002.190132-1-miaoqinglang@huawei.com>
Date: Wed, 16 Sep 2020 14:20:02 +0800
From: Qinglang Miao <miaoqinglang@...wei.com>
To: Justin Sanders <justin@...aid.com>, Jens Axboe <axboe@...nel.dk>
CC: <linux-block@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
"Qinglang Miao" <miaoqinglang@...wei.com>
Subject: [PATCH -next] aoe: remove unnecessary mutex_init()
The mutex ktio_spawn_lock is initialized statically. It is
unnecessary to initialize by mutex_init().
Signed-off-by: Qinglang Miao <miaoqinglang@...wei.com>
---
drivers/block/aoe/aoecmd.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/block/aoe/aoecmd.c b/drivers/block/aoe/aoecmd.c
index 313f0b946..d5d4a8460 100644
--- a/drivers/block/aoe/aoecmd.c
+++ b/drivers/block/aoe/aoecmd.c
@@ -1708,8 +1708,6 @@ aoecmd_init(void)
goto ktiowq_fail;
}
- mutex_init(&ktio_spawn_lock);
-
for (i = 0; i < ncpus; i++) {
INIT_LIST_HEAD(&iocq[i].head);
spin_lock_init(&iocq[i].lock);
--
2.23.0
Powered by blists - more mailing lists