]> git.ipfire.org Git - thirdparty/linux.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)
committerMikulas Patocka <mpatocka@redhat.com>
Mon, 23 Jun 2025 09:56:51 +0000 (11:56 +0200)
commit8ca719b81987be690f197e82fdb030580c0a07f3
tree6afc0368c56bf685ca7240da0fe16c59b45e89f3
parent86731a2a651e58953fc949573895f2fa6d456841
dm-table: fix checking for rq stackable devices

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>
drivers/md/dm-table.c