Skip to content

fs: add a new user_write_streams() callback#63

Closed
blktests-ci[bot] wants to merge 5 commits intolinus-master_basefrom
series/986757=>linus-master
Closed

fs: add a new user_write_streams() callback#63
blktests-ci[bot] wants to merge 5 commits intolinus-master_basefrom
series/986757=>linus-master

Conversation

@blktests-ci
Copy link
Copy Markdown

@blktests-ci blktests-ci Bot commented Jul 30, 2025

Pull request for series with
subject: fs: add a new user_write_streams() callback
version: 1
url: https://patchwork.kernel.org/project/linux-block/list/?series=986757

@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Jul 30, 2025

Upstream branch: 14bed9b
series: https://patchwork.kernel.org/project/linux-block/list/?series=986757
version: 1

@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Jul 31, 2025

Upstream branch: 260f6f4
series: https://patchwork.kernel.org/project/linux-block/list/?series=986757
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/986757=>linus-master branch from a3d3659 to 00fde52 Compare July 31, 2025 04:26
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from f092a9b to 0b59764 Compare July 31, 2025 17:58
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Jul 31, 2025

Upstream branch: d6084bb
series: https://patchwork.kernel.org/project/linux-block/list/?series=986757
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/986757=>linus-master branch from 00fde52 to ec56d1d Compare July 31, 2025 17:58
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from 0b59764 to aee5bd3 Compare July 31, 2025 19:11
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Jul 31, 2025

Upstream branch: 831462f
series: https://patchwork.kernel.org/project/linux-block/list/?series=986757
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/986757=>linus-master branch from ec56d1d to b05e6d9 Compare July 31, 2025 19:12
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from aee5bd3 to ef18525 Compare July 31, 2025 20:07
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Jul 31, 2025

Upstream branch: c93529a
series: https://patchwork.kernel.org/project/linux-block/list/?series=986757
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/986757=>linus-master branch from b05e6d9 to 6423ebe Compare July 31, 2025 20:08
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from ef18525 to 3851b3f Compare July 31, 2025 20:55
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Jul 31, 2025

Upstream branch: cbbf0a7
series: https://patchwork.kernel.org/project/linux-block/list/?series=986757
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/986757=>linus-master branch from 6423ebe to 878f5be Compare July 31, 2025 20:55
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from 3851b3f to 28b3384 Compare July 31, 2025 23:42
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Jul 31, 2025

Upstream branch: 6a68cec
series: https://patchwork.kernel.org/project/linux-block/list/?series=986757
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/986757=>linus-master branch from 878f5be to 6e53b28 Compare July 31, 2025 23:42
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from 28b3384 to 8ab9be5 Compare August 1, 2025 00:45
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Aug 1, 2025

Upstream branch: f2d282e
series: https://patchwork.kernel.org/project/linux-block/list/?series=986757
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/986757=>linus-master branch from 6e53b28 to fd4814b Compare August 1, 2025 00:46
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from 8ab9be5 to 5b90760 Compare August 1, 2025 04:53
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Aug 1, 2025

Upstream branch: 89748ac
series: https://patchwork.kernel.org/project/linux-block/list/?series=986757
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/986757=>linus-master branch from fd4814b to c62fa87 Compare August 1, 2025 04:53
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from 5b90760 to 3893da1 Compare August 1, 2025 12:00
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Aug 1, 2025

Upstream branch: 89748ac
series: https://patchwork.kernel.org/project/linux-block/list/?series=986757
version: 1

@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Aug 9, 2025

Upstream branch: c30a135
series: https://patchwork.kernel.org/project/linux-block/list/?series=986757
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/986757=>linus-master branch from f2b26d2 to 72f7e2b Compare August 9, 2025 06:32
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from ae9bce3 to e263d6e Compare August 9, 2025 15:26
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Aug 9, 2025

Upstream branch: 561c803
series: https://patchwork.kernel.org/project/linux-block/list/?series=986757
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/986757=>linus-master branch from 72f7e2b to 6e3b710 Compare August 9, 2025 15:38
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from e263d6e to 77110f5 Compare August 10, 2025 05:58
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Aug 10, 2025

Upstream branch: b96ddbc
series: https://patchwork.kernel.org/project/linux-block/list/?series=986757
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/986757=>linus-master branch from 6e3b710 to a653404 Compare August 10, 2025 06:10
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from 77110f5 to a2e0474 Compare August 10, 2025 06:39
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Aug 10, 2025

Upstream branch: 2b38afc
series: https://patchwork.kernel.org/project/linux-block/list/?series=986757
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/986757=>linus-master branch from a653404 to e028b61 Compare August 10, 2025 06:51
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from a2e0474 to 36a8aec Compare August 10, 2025 16:54
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Aug 10, 2025

Upstream branch: 8f5ae30
series: https://patchwork.kernel.org/project/linux-block/list/?series=986757
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/986757=>linus-master branch from e028b61 to b2843b5 Compare August 10, 2025 17:06
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Aug 12, 2025

Upstream branch: 53e760d
series: https://patchwork.kernel.org/project/linux-block/list/?series=986757
version: 1

@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Aug 12, 2025

Upstream branch: 0e39a73
series: https://patchwork.kernel.org/project/linux-block/list/?series=986757
version: 1

@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Aug 12, 2025

Upstream branch: 8742b2d
series: https://patchwork.kernel.org/project/linux-block/list/?series=986757
version: 1

@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Aug 13, 2025

Upstream branch: 91325f3
series: https://patchwork.kernel.org/project/linux-block/list/?series=986757
version: 1

@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Aug 13, 2025

Upstream branch: 3a4a036
series: https://patchwork.kernel.org/project/linux-block/list/?series=986757
version: 1

@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Aug 13, 2025

Upstream branch: dfc0f63
series: https://patchwork.kernel.org/project/linux-block/list/?series=986757
version: 1

@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Aug 14, 2025

Upstream branch: 0cc5352
series: https://patchwork.kernel.org/project/linux-block/list/?series=986757
version: 1

@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Aug 14, 2025

Upstream branch: 24ea63e
series: https://patchwork.kernel.org/project/linux-block/list/?series=986757
version: 1

@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Aug 15, 2025

Upstream branch: d7ee5bd
series: https://patchwork.kernel.org/project/linux-block/list/?series=986757
version: 1

Kanchan Joshi added 5 commits August 20, 2025 21:12
so that filesystem can control number of write streams for user space.

Signed-off-by: Kanchan Joshi <[email protected]>
Add new fcntl F_GET_MAX_WRITE_STREAMS.
This returns the numbers of streams that are available for userspace.

And for that, use ->user_write_streams() callback when the involved
filesystem provides it.
In absence of such callback, use 'max_write_streams' queue limit of the
underlying block device.

Signed-off-by: Kanchan Joshi <[email protected]>
Prepare for supporting per-inode write streams.
Part of the existing 32-bit hole is used for the new field.

Signed-off-by: Kanchan Joshi <[email protected]>
bio->bi_write_stream is not set by the filesystem code.
Use inode's write stream value to do that.

Signed-off-by: Kanchan Joshi <[email protected]>
Add two new fcntls:
F_GET_WRITE_STREAM - to query the write-stream on inode
F_SET_WRITE_STREAM - to set the write-stream on inode

Application should query the available streams by calling
F_GET_MAX_WRITE_STREAMS first.
If returned value is N, applications can choose any value from 1 to N
while setting the stream.
Setting the value 0 is not flagged as an error as that implies no
stream.
But setting a larger value than available streams is rejected.

Signed-off-by: Kanchan Joshi <[email protected]>
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Aug 20, 2025

Upstream branch: b19a97d
series: https://patchwork.kernel.org/project/linux-block/list/?series=986757
version: 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant