]> www.infradead.org Git - users/hch/misc.git/commit
RFC: block: allow write streams on partitions block-write-streams
authorChristoph Hellwig <hch@lst.de>
Mon, 11 Nov 2024 10:03:46 +0000 (11:03 +0100)
committerChristoph Hellwig <hch@lst.de>
Tue, 19 Nov 2024 11:18:03 +0000 (12:18 +0100)
commit86be06e37a7fd4064e31c5efd5ad8e95f667b597
tree2f18a27063de6b6d0fbd45eeecaef504bc7061ed
parente80f4eaf370dea91d85b65e2026c87fc07d92ca5
RFC: block: allow write streams on partitions

By default assign all write streams to partition 1, and add a hack
sysfs files that distributes them all equally.

This is implemented by storing the number of per-partition write
streams in struct block device, as well as the offset to the global
ones, and then remapping the write streams in the I/O submission
path.

The sysfs is hacky and undocumented, better suggestions welcome
from actual users of write stream on partitions.

Signed-off-by: Christoph Hellwig <hch@lst.de>
block/bdev.c
block/blk-core.c
block/genhd.c
block/partitions/core.c
include/linux/blk_types.h
include/linux/blkdev.h