Lift the code from device mapper into blk_stack_limits to inherity the stacking limitations. This ensures we do the right thing for all stacked zoned block devices.
Showing the changes to include/linux (1 of 3 files). Show all
Unified · Split
| @@ -306,11 +306,14 @@ enum blk_queue_state { · 305 unmodified lines | |||
| 306 | 306 | ||
| 307 | /* | 307 | /* |
| 308 | * Zoned block device models (zoned limit). | 308 | * Zoned block device models (zoned limit). |
| 309 | * | ||
| 310 | * Note: This needs to be ordered from the least to the most severe | ||
| 311 | * restrictions for the inheritance in blk_stack_limits() to work. | ||
| 309 | */ | 312 | */ |
| 310 | enum blk_zoned_model { | 313 | enum blk_zoned_model { |
| 311 | BLK_ZONED_NONE, /* Regular block device */ | 314 | BLK_ZONED_NONE = 0, /* Regular block device */ |
| 312 | BLK_ZONED_HA, /* Host-aware zoned block device */ | 315 | BLK_ZONED_HA, /* Host-aware zoned block device */ |
| 313 | BLK_ZONED_HM, /* Host-managed zoned block device */ | 316 | BLK_ZONED_HM, /* Host-managed zoned block device */ |
| 314 | }; | 317 | }; |
| 315 | 318 | ||
| 316 | struct queue_limits { | 319 | struct queue_limits { |