]> 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:26:01 +0000 (16:26 +0200)
commitda66e354be832aa7c2f774fbf77d57ae110c1a02
tree981564b079a276e919426046ee352fac3b470df8
parent810bc901417bfb0eeaabe9978ce5def4df1a0d89
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