]> www.infradead.org Git - users/hch/block.git/commit
md: set md-specific flags for all queue limits blk-flags-fixups
authorChristoph Hellwig <hch@lst.de>
Tue, 25 Jun 2024 06:48:18 +0000 (08:48 +0200)
committerChristoph Hellwig <hch@lst.de>
Tue, 25 Jun 2024 08:54:12 +0000 (10:54 +0200)
commit81c816827197f811e14add7a79220ed9eef6af02
tree623303266c4a6df67286062c901df413354d585d
parent2a6e7507fc90d1c1d57998fd7563692001d871aa
md: set md-specific flags for all queue limits

The md driver wants to enforce a number of flags to an all devices, even
when not inheriting them from the underlying devices.  To make sure these
flags survive the queue_limits_set calls that md uses to update the
queue limits without deriving them form the previous limits add a new
md_init_stacking_limits helper that calls blk_set_stacking_limits and sets
these flags.

Fixes: 1122c0c1cc71 ("block: move cache control settings out of queue->flags")
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/md/md.c
drivers/md/md.h
drivers/md/raid0.c
drivers/md/raid1.c
drivers/md/raid10.c
drivers/md/raid5.c