summaryrefslogtreecommitdiffstats
path: root/drivers/block/aoe
diff options
context:
space:
mode:
authorYang Yingliang <yangyingliang@huawei.com>2021-05-11 13:34:40 +0200
committerJens Axboe <axboe@kernel.dk>2021-05-24 14:47:21 +0200
commit65a8db393a8e49ee98432cf3e641d2bd2fa88606 (patch)
tree0a33f9f968f89d3b0a0e31b18043c97102504734 /drivers/block/aoe
parentblock_dump: remove comments in docs (diff)
downloadlinux-65a8db393a8e49ee98432cf3e641d2bd2fa88606.tar.xz
linux-65a8db393a8e49ee98432cf3e641d2bd2fa88606.zip
aoe: remove unnecessary mutex_init()
The mutex ktio_spawn_lock is initialized statically. It is unnecessary to initialize by mutex_init(). Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Yang Yingliang <yangyingliang@huawei.com> Link: https://lore.kernel.org/r/20210511113440.3772053-1-yangyingliang@huawei.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/block/aoe')
-rw-r--r--drivers/block/aoe/aoecmd.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/block/aoe/aoecmd.c b/drivers/block/aoe/aoecmd.c
index ecd77897a761..588889bea7c3 100644
--- a/drivers/block/aoe/aoecmd.c
+++ b/drivers/block/aoe/aoecmd.c
@@ -1701,8 +1701,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);