block: Remove REQ_OP_ZONE_RESET_ALL emulation
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. Signed-off-by: Damien Le Moal <dlemoal@kernel.org> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com> Link: https://lore.kernel.org/r/20240704052816.623865-5-dlemoal@kernel.org Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
committed by
Jens Axboe
parent
81e7706345
commit
f2a7bea237
@@ -318,9 +318,6 @@ typedef unsigned int __bitwise blk_features_t;
|
||||
/* is a zoned device */
|
||||
#define BLK_FEAT_ZONED ((__force blk_features_t)(1u << 10))
|
||||
|
||||
/* supports Zone Reset All */
|
||||
#define BLK_FEAT_ZONE_RESETALL ((__force blk_features_t)(1u << 11))
|
||||
|
||||
/* supports PCI(e) p2p requests */
|
||||
#define BLK_FEAT_PCI_P2PDMA ((__force blk_features_t)(1u << 12))
|
||||
|
||||
@@ -618,8 +615,6 @@ void blk_queue_flag_clear(unsigned int flag, struct request_queue *q);
|
||||
test_bit(QUEUE_FLAG_NOXMERGES, &(q)->queue_flags)
|
||||
#define blk_queue_nonrot(q) (!((q)->limits.features & BLK_FEAT_ROTATIONAL))
|
||||
#define blk_queue_io_stat(q) ((q)->limits.features & BLK_FEAT_IO_STAT)
|
||||
#define blk_queue_zone_resetall(q) \
|
||||
((q)->limits.features & BLK_FEAT_ZONE_RESETALL)
|
||||
#define blk_queue_dax(q) ((q)->limits.features & BLK_FEAT_DAX)
|
||||
#define blk_queue_pci_p2pdma(q) ((q)->limits.features & BLK_FEAT_PCI_P2PDMA)
|
||||
#ifdef CONFIG_BLK_RQ_ALLOC_TIME
|
||||
|
||||
Reference in New Issue
Block a user