]> git.ipfire.org Git - thirdparty/linux.git/commit
dm: don't report warning when doing deferred remove
authorMikulas Patocka <mpatocka@redhat.com>
Mon, 16 Mar 2026 14:04:15 +0000 (15:04 +0100)
committerMikulas Patocka <mpatocka@redhat.com>
Wed, 18 Mar 2026 14:39:48 +0000 (15:39 +0100)
commitb7cce3e2cca9cd78418f3c3784474b778e7996fe
treed68294a3db4aa11a9bc42aae1f517964acd20095
parent99a2312f69805f4ba92d98a757625e0300a747ab
dm: don't report warning when doing deferred remove

If dm_hash_remove_all was called from dm_deferred_remove, it would write
a warning "remove_all left %d open device(s)" if there are some other
devices active.

The warning is bogus, so let's disable it in this case.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Reported-by: Zdenek Kabelac <zkabelac@redhat.com>
Cc: stable@vger.kernel.org
Fixes: 2c140a246dc0 ("dm: allow remove to be deferred")
drivers/md/dm-ioctl.c