History

block: implement async io_uring zone reset all

Add a new BLOCK_URING_CMD_ZONE_RESET_ALL uring cmd to reset all zones for a given block device. This can be used by storage systems or file system mkfs tools to initialize multiple devices in parallel.

Christoph Hellwig committed 3 months ago

Commit ca8f6541 parent b3c5f8d2 files · +38 −0Browse files

Showing the changes to include/uapi (1 of 2 files). Show all

Unified · Split

include/uapi/linux/blkdev.h+1−0
@@ -10,5 +10,6 @@ · 9 unmodified lines
1010 * It's a different number space from ioctl(), reuse the block's code 0x12.
1111 */
1212 #define BLOCK_URING_CMD_DISCARD _IO(0x12, 0)
13+#define BLOCK_URING_CMD_ZONE_RESET_ALL _IO(0x12, 1)
1314
1415 #endif