]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
Revert "dm: fix a race condition in retrieve_deps"
authorBenjamin Marzinski <bmarzins@redhat.com>
Wed, 28 Jan 2026 00:12:23 +0000 (19:12 -0500)
committerMikulas Patocka <mpatocka@redhat.com>
Wed, 28 Jan 2026 14:44:02 +0000 (15:44 +0100)
commit4550a71b179be9e2a17015c018b231a2daca2dd1
treeba80a0e79ec5db1a6429a05a47714342f6e2ca92
parent787bd63ee661b0148ce8e1fde92b7afddd85c446
Revert "dm: fix a race condition in retrieve_deps"

This reverts commit f6007dce0cd35d634d9be91ef3515a6385dcee16.

Commit f6007dce0cd3 ("dm: fix a race condition in retrieve_deps") was
added to fix a race between retrieving the list of dm table devices and
multipath_message() modifying the list of table devices. But Commit
a48f6b82c5c4 ("dm mpath: don't call dm_get_device in multipath_message")
removed the call to dm_get_device() from multipath_message(). After that
commit, the only calls to dm_get_device() and dm_put_device() are in
target constructors and destructors, so the race with retrieve_deps() is
no longer possible.

Suggested-by: Martin Wilck <mwilck@suse.com>
Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
drivers/md/dm-core.h
drivers/md/dm-ioctl.c
drivers/md/dm-table.c