Commit 573d5ab
md: set md-specific flags for all queue limits
The md driver wants to enforce a number of flags for 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: 1122c0c ("block: move cache control settings out of queue->flags")
Reported-by: kernel test robot <oliver.sang@intel.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Link: https://lore.kernel.org/r/20240626142637.300624-2-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>1 parent cf546dd commit 573d5ab
6 files changed
Lines changed: 14 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5853 | 5853 | | |
5854 | 5854 | | |
5855 | 5855 | | |
| 5856 | + | |
| 5857 | + | |
| 5858 | + | |
| 5859 | + | |
| 5860 | + | |
| 5861 | + | |
| 5862 | + | |
| 5863 | + | |
5856 | 5864 | | |
5857 | 5865 | | |
5858 | 5866 | | |
| |||
5871 | 5879 | | |
5872 | 5880 | | |
5873 | 5881 | | |
5874 | | - | |
5875 | | - | |
5876 | | - | |
5877 | | - | |
5878 | 5882 | | |
5879 | 5883 | | |
5880 | 5884 | | |
| |||
5914 | 5918 | | |
5915 | 5919 | | |
5916 | 5920 | | |
5917 | | - | |
| 5921 | + | |
5918 | 5922 | | |
5919 | 5923 | | |
5920 | 5924 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
893 | 893 | | |
894 | 894 | | |
895 | 895 | | |
| 896 | + | |
896 | 897 | | |
897 | 898 | | |
898 | 899 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
379 | 379 | | |
380 | 380 | | |
381 | 381 | | |
382 | | - | |
| 382 | + | |
383 | 383 | | |
384 | 384 | | |
385 | 385 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3194 | 3194 | | |
3195 | 3195 | | |
3196 | 3196 | | |
3197 | | - | |
| 3197 | + | |
3198 | 3198 | | |
3199 | 3199 | | |
3200 | 3200 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3974 | 3974 | | |
3975 | 3975 | | |
3976 | 3976 | | |
3977 | | - | |
| 3977 | + | |
3978 | 3978 | | |
3979 | 3979 | | |
3980 | 3980 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7708 | 7708 | | |
7709 | 7709 | | |
7710 | 7710 | | |
7711 | | - | |
| 7711 | + | |
7712 | 7712 | | |
7713 | 7713 | | |
7714 | 7714 | | |
| |||
0 commit comments