null_blk: Fix missing mutex_destroy() at module removal

[ Upstream commit 07d1b99825f40f9c0d93e6b99d79a08d0717bac1 ]

When a mutex lock is not used any more, the function mutex_destroy
should be called to mark the mutex lock uninitialized.

Fixes: f2298c0403b0 ("null_blk: multi queue aware block test driver")
Signed-off-by: Zhu Yanjun <yanjun.zhu@linux.dev>
Link: https://lore.kernel.org/r/20240425171635.4227-1-yanjun.zhu@linux.dev
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
(cherry picked from commit 54ee1f7e2ea06e5c5341dc54255881fa5d11b312)
[Vegard: fix conflict in context due to missing commit
 74ede5af27c7fb91b18d8386128486290b8d44be ("null_blk: remove lightnvm
 support").]
Signed-off-by: Vegard Nossum <vegard.nossum@oracle.com>
1 file changed