Now that device mapper can handle resetting all zones of a mapped zoned device using REQ_OP_ZONE_RESET_ALL, all zoned block device drivers support this operation. With this, the request queue feature BLK_FEAT_ZONE_RESETALL is not necessary and the emulation code in blk-zone.c can be removed.
Showing the changes to include/linux/blkdev.h (1 of 8 files). Show all
Unified · Split
| @@ -318,9 +318,6 @@ typedef unsigned int __bitwise blk_features_t; · 317 unmodified lines | ||
| 318 | 318 | /* is a zoned device */ |
| 319 | 319 | #define BLK_FEAT_ZONED ((__force blk_features_t)(1u << 10)) |
| 320 | 320 | |
| 321 | −/* supports Zone Reset All */ | |
| 322 | −#define BLK_FEAT_ZONE_RESETALL ((__force blk_features_t)(1u << 11)) | |
| 323 | − | |
| 324 | 321 | /* supports PCI(e) p2p requests */ |
| 325 | 322 | #define BLK_FEAT_PCI_P2PDMA ((__force blk_features_t)(1u << 12)) |
| 326 | 323 | |
| @@ -618,8 +615,6 @@ void blk_queue_flag_clear(unsigned int flag, struct request_queue *q); · 291 unmodified lines | ||
| 618 | 615 | test_bit(QUEUE_FLAG_NOXMERGES, &(q)->queue_flags) |
| 619 | 616 | #define blk_queue_nonrot(q) (!((q)->limits.features & BLK_FEAT_ROTATIONAL)) |
| 620 | 617 | #define blk_queue_io_stat(q) ((q)->limits.features & BLK_FEAT_IO_STAT) |
| 621 | −#define blk_queue_zone_resetall(q) \ | |
| 622 | − ((q)->limits.features & BLK_FEAT_ZONE_RESETALL) | |
| 623 | 618 | #define blk_queue_dax(q) ((q)->limits.features & BLK_FEAT_DAX) |
| 624 | 619 | #define blk_queue_pci_p2pdma(q) ((q)->limits.features & BLK_FEAT_PCI_P2PDMA) |
| 625 | 620 | #ifdef CONFIG_BLK_RQ_ALLOC_TIME |