]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
dm-table: fix checking for rq stackable devices
authorBenjamin Marzinski <bmarzins@redhat.com>
Fri, 13 Jun 2025 23:08:52 +0000 (19:08 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Aug 2025 14:28:28 +0000 (16:28 +0200)
commitdd45d42ab290f2157452320f6ce51bbf3ed17295
tree8ebc5d1e3e28e4ac74c0d1b5ff433d2550b6b72d
parentf4133dc2b93dd596c907c95e4f8d99d6c46114f3
dm-table: fix checking for rq stackable devices

[ Upstream commit 8ca719b81987be690f197e82fdb030580c0a07f3 ]

Due to the semantics of iterate_devices(), the current code allows a
request-based dm table as long as it includes one request-stackable
device. It is supposed to only allow tables where there are no
non-request-stackable devices.

Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
Reviewed-by: Mike Snitzer <snitzer@kernel.org>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/md/dm-table.c