History

block: inherit the zoned characteristics in blk_stack_limits

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.

Christoph Hellwig committed 6 years ago

Commit 3093a471 parent 4f43d643 files · +7 −22Browse files

Showing the changes to include/linux (1 of 3 files). Show all

Unified · Split

include/linux/blkdev.h+6−3
@@ -306,11 +306,14 @@ enum blk_queue_state { · 305 unmodified lines
306306
307307 /*
308308 * 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.
309312 */
310313 enum blk_zoned_model {
311− BLK_ZONED_NONE, /* Regular block device */
312− BLK_ZONED_HA, /* Host-aware zoned block device */
313− BLK_ZONED_HM, /* Host-managed zoned block device */
314+ BLK_ZONED_NONE = 0, /* Regular block device */
315+ BLK_ZONED_HA, /* Host-aware zoned block device */
316+ BLK_ZONED_HM, /* Host-managed zoned block device */
314317 };
315318
316319 struct queue_limits {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t