* RE: [PATCH 0/2] block: write streams on partitions [not found] <CGME20261203083228epcms2p2bd8ded692377baa9f3116da00b2d085d@epcms2p2> @ 2026-12-03 8:32 ` Keoseong Park 2026-12-03 9:52 ` hch 0 siblings, 1 reply; 3+ messages in thread From: Keoseong Park @ 2026-12-03 8:32 UTC (permalink / raw) To: axboe, hch, kbusch, hare, Kanchan Joshi, Nitesh Shetty Cc: Keoseong Park, Jinyoung Choi, Jeuk Kim, Yunjae Jo, linux-block, linux-kernel, SSDR Gost Dev Hi, Gentle ping on this series. Some context on why I'd like to get this moving: commit e6c8140bd06d ("f2fs: map data writes to FDP streams"), merged in v7.2, makes f2fs tag its data writes with write streams. But bdev_max_write_streams() returns 0 for partitions, so this never takes effect when f2fs is mounted on a partition of an FDP-enabled NVMe namespace. The series still applies cleanly to for-7.5/block. Jens, Christoph, any comments on the approach? In particular, I'd appreciate feedback on whether a per-partition sysfs attribute is an acceptable interface for reserving streams, or if you'd prefer it to be configured some other way. Thanks, Keoseong ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 0/2] block: write streams on partitions 2026-12-03 8:32 ` [PATCH 0/2] block: write streams on partitions Keoseong Park @ 2026-12-03 9:52 ` hch 0 siblings, 0 replies; 3+ messages in thread From: hch @ 2026-12-03 9:52 UTC (permalink / raw) To: Keoseong Park Cc: axboe, hch, kbusch, hare, Kanchan Joshi, Nitesh Shetty, Jinyoung Choi, Jeuk Kim, Yunjae Jo, linux-block, linux-kernel, SSDR Gost Dev On Thu, Dec 03, 2026 at 05:32:28PM +0900, Keoseong Park wrote: > Hi, > > Gentle ping on this series. > > Some context on why I'd like to get this moving: commit e6c8140bd06d > ("f2fs: map data writes to FDP streams"), merged in v7.2, makes f2fs > tag its data writes with write streams. But bdev_max_write_streams() > returns 0 for partitions, so this never takes effect when f2fs is > mounted on a partition of an FDP-enabled NVMe namespace. Please revert that broken f2fs patch now. The proper API to implement streams is still beeing discussed, and the above commit is very broken. ^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <CGME20260911064529epcms2p4791af8edd7c24d1a44b24e77c95c3f0b@epcms2p4>]
* [PATCH 0/2] block: write streams on partitions [not found] <CGME20260911064529epcms2p4791af8edd7c24d1a44b24e77c95c3f0b@epcms2p4> @ 2026-09-11 6:45 ` Keoseong Park 0 siblings, 0 replies; 3+ messages in thread From: Keoseong Park @ 2026-09-11 6:45 UTC (permalink / raw) To: axboe, hch, kbusch, hare, Kanchan Joshi, Nitesh Shetty Cc: Jinyoung Choi, Jeuk Kim, Yunjae Jo, linux-block, linux-kernel, SSDR Gost Dev bdev_max_write_streams() returns 0 for any partition, so nothing on top of a partition can use write streams today. A partition already gets its own view of the device: the file system sees sectors from 0 and blk_partition_remap() turns them into disk sectors. The first patch does the same for write streams. A partition gets a subset of the disk's streams and exposes them as its streams 1 to N, so a file system on a partition needs no change, and the remap translates them to the streams reserved for that partition - two partitions can both write with stream 1 without sharing a stream on the device. The idea comes from an earlier patch by Christoph [1]. The second patch adds /sys/block/<disk>/<partition>/write_streams. Writing N reserves N of the disk's streams for the partition, writing 0 gives them back, and the IDs come from a per-disk bitmap so that two partitions never share one. The count can only be changed while the partition is not open, the same rule as for a partition table change. Shrinking releases only the tail, so the streams a partition keeps map to the same device streams as before. The feature is opt-in: unless a partition's write_streams is set, partition I/O behaves exactly as before. [1] https://lore.kernel.org/all/20241119121632.1225556-16-hch@lst.de/ Keoseong Park (2): block: allow write streams on partitions block: add a sysfs interface to reserve write streams for a partition Documentation/ABI/stable/sysfs-block | 19 ++++ block/bdev.c | 1 + block/blk-core.c | 10 ++- block/partitions/core.c | 128 +++++++++++++++++++++++++++ include/linux/blk_types.h | 3 + include/linux/blkdev.h | 4 +- 6 files changed, 163 insertions(+), 2 deletions(-) -- 2.43.0 ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-12-03 9:52 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <CGME20261203083228epcms2p2bd8ded692377baa9f3116da00b2d085d@epcms2p2>
2026-12-03 8:32 ` [PATCH 0/2] block: write streams on partitions Keoseong Park
2026-12-03 9:52 ` hch
[not found] <CGME20260911064529epcms2p4791af8edd7c24d1a44b24e77c95c3f0b@epcms2p4>
2026-09-11 6:45 ` Keoseong Park
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®