History

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.

Damien Le Moal committed 2 years ago

Commit f2a7bea1 parent 81e77068 files · +9 −87Browse files

Showing the changes to include/linux/blkdev.h (1 of 8 files). Show all

Unified · Split

include/linux/blkdev.h+0−5
@@ -318,9 +318,6 @@ typedef unsigned int __bitwise blk_features_t; · 317 unmodified lines
318318 /* is a zoned device */
319319 #define BLK_FEAT_ZONED ((__force blk_features_t)(1u << 10))
320320
321−/* supports Zone Reset All */
322−#define BLK_FEAT_ZONE_RESETALL ((__force blk_features_t)(1u << 11))
323−
324321 /* supports PCI(e) p2p requests */
325322 #define BLK_FEAT_PCI_P2PDMA ((__force blk_features_t)(1u << 12))
326323
@@ -618,8 +615,6 @@ void blk_queue_flag_clear(unsigned int flag, struct request_queue *q); · 291 unmodified lines
618615 test_bit(QUEUE_FLAG_NOXMERGES, &(q)->queue_flags)
619616 #define blk_queue_nonrot(q) (!((q)->limits.features & BLK_FEAT_ROTATIONAL))
620617 #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)
623618 #define blk_queue_dax(q) ((q)->limits.features & BLK_FEAT_DAX)
624619 #define blk_queue_pci_p2pdma(q) ((q)->limits.features & BLK_FEAT_PCI_P2PDMA)
625620 #ifdef CONFIG_BLK_RQ_ALLOC_TIME

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