dm ioctl: assert _hash_lock is held in __hash_remove
authorMike Snitzer <snitzer@kernel.org>
Fri, 17 Feb 2023 18:08:17 +0000 (13:08 -0500)
committerMike Snitzer <snitzer@kernel.org>
Fri, 17 Feb 2023 19:49:21 +0000 (14:49 -0500)
commit69868bebfe8e9a47b0d8a12f7473b8a3b7239ef3
tree233cdb247d0448a000d1a89ea2b33daa5776a4b3
parent76227f6dc805e9e960128bcc6276647361e0827c
dm ioctl: assert _hash_lock is held in __hash_remove

Also update dm_early_create() to take _hash_lock when calling both
__get_name_cell and __hash_remove -- given dm_early_create()'s early
boot usecase this locking isn't about correctness but it allows
lockdep_assert_held() to be added to __hash_remove.

Signed-off-by: Mike Snitzer <snitzer@kernel.org>
drivers/md/dm-ioctl.c