Skip to content

Commit

Permalink
aoe: remove unnecessary mutex_init()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Yang Yingliang authored and Jens Axboe committed May 24, 2021
1 parent 51fd43e commit 65a8db3
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/block/aoe/aoecmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 65a8db3

Please sign in to comment.