Skip to content

block: sysfs cleanup for deprecated API usage#711

Open
blktests-ci[bot] wants to merge 10 commits intolinus-master_basefrom
series/1075620=>linus-master
Open

block: sysfs cleanup for deprecated API usage#711
blktests-ci[bot] wants to merge 10 commits intolinus-master_basefrom
series/1075620=>linus-master

Conversation

@blktests-ci
Copy link
Copy Markdown

@blktests-ci blktests-ci bot commented Apr 1, 2026

Pull request for series with
subject: block: sysfs cleanup for deprecated API usage
version: 1
url: https://patchwork.kernel.org/project/linux-block/list/?series=1075620

@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci bot commented Apr 1, 2026

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

@blktests-ci blktests-ci bot force-pushed the linus-master_base branch 2 times, most recently from ecbdbb4 to 480b162 Compare April 2, 2026 07:52
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci bot commented Apr 2, 2026

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

@blktests-ci blktests-ci bot force-pushed the series/1075620=>linus-master branch from f46115e to 4fec5ee Compare April 2, 2026 07:54
@blktests-ci blktests-ci bot force-pushed the linus-master_base branch 2 times, most recently from a96fba7 to 0cd6ac2 Compare April 3, 2026 07:51
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci bot commented Apr 3, 2026

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

@blktests-ci blktests-ci bot force-pushed the series/1075620=>linus-master branch from 4fec5ee to c95c893 Compare April 3, 2026 07:54
@blktests-ci blktests-ci bot force-pushed the linus-master_base branch from 0cd6ac2 to 910d344 Compare April 3, 2026 11:53
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci bot commented Apr 3, 2026

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

@blktests-ci blktests-ci bot force-pushed the series/1075620=>linus-master branch from c95c893 to b09d41f Compare April 3, 2026 11:57
@blktests-ci blktests-ci bot force-pushed the linus-master_base branch from 910d344 to ed862bc Compare April 4, 2026 05:34
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci bot commented Apr 4, 2026

Upstream branch: 7ca6d1c
series: https://patchwork.kernel.org/project/linux-block/list/?series=1075620
version: 1

@blktests-ci blktests-ci bot force-pushed the series/1075620=>linus-master branch from b09d41f to 40fe562 Compare April 4, 2026 05:38
@blktests-ci blktests-ci bot force-pushed the linus-master_base branch from ed862bc to 2d0c3d5 Compare April 4, 2026 16:55
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci bot commented Apr 4, 2026

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

@blktests-ci blktests-ci bot force-pushed the series/1075620=>linus-master branch from 40fe562 to 2a66541 Compare April 4, 2026 16:59
@blktests-ci blktests-ci bot force-pushed the linus-master_base branch from 2d0c3d5 to 931d9b0 Compare April 8, 2026 10:29
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci bot commented Apr 8, 2026

Upstream branch: 3036cd0
series: https://patchwork.kernel.org/project/linux-block/list/?series=1075620
version: 1

@blktests-ci blktests-ci bot force-pushed the series/1075620=>linus-master branch from 2a66541 to 86c4477 Compare April 8, 2026 10:32
@blktests-ci blktests-ci bot force-pushed the linus-master_base branch from 931d9b0 to 78a4682 Compare April 10, 2026 00:51
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci bot commented Apr 10, 2026

Upstream branch: 9a9c8ce
series: https://patchwork.kernel.org/project/linux-block/list/?series=1075620
version: 1

@blktests-ci blktests-ci bot force-pushed the series/1075620=>linus-master branch from 86c4477 to 7fdddff Compare April 10, 2026 00:57
@blktests-ci blktests-ci bot force-pushed the linus-master_base branch from 78a4682 to 8f17195 Compare April 13, 2026 06:19
Use sysfs_emit() instead of sprintf() per the sysfs output guidelines.

Signed-off-by: Jackie Liu <[email protected]>
Use sysfs_emit() for nr_tags and nr_reserved_tags, and convert
cpus_show to use sysfs_emit_at() which also drops the manual
PAGE_SIZE tracking.

Signed-off-by: Jackie Liu <[email protected]>
Use sysfs_emit()/sysfs_emit_at() instead of sprintf() for the disk
events sysfs attributes.

Signed-off-by: Jackie Liu <[email protected]>
Use sysfs_emit() instead of sprintf() for partition attribute
show functions.

Signed-off-by: Jackie Liu <[email protected]>
Use sysfs_emit() instead of sprintf() for the fail_io timeout
sysfs show function.

Signed-off-by: Jackie Liu <[email protected]>
Use sysfs_emit() instead of sprintf() in the KYBER_LAT_SHOW_STORE
macro for the kyber I/O scheduler latency target show functions.

Signed-off-by: Jackie Liu <[email protected]>
Use sysfs_emit() instead of sprintf() in bfq_var_show(), which is
the common helper used by all BFQ sysfs show functions.

Signed-off-by: Jackie Liu <[email protected]>
…ore()

kstrtol() is the preferred way to parse a single integer from sysfs
input. It also makes the !count check unnecessary since kstrtol()
returns -EINVAL on empty or malformed strings.

Signed-off-by: Jackie Liu <[email protected]>
simple_strtoul() is deprecated. Switch to kstrtoint() which also
removes the need for the const-discarding cast and the if (count)
wrapper.

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

blktests-ci bot commented Apr 13, 2026

Upstream branch: 028ef9c
series: https://patchwork.kernel.org/project/linux-block/list/?series=1075620
version: 1

sscanf() is overly lenient for parsing a single integer from sysfs.
Use kstrtoint() which also properly rejects malformed input and
makes the count > 0 guard unnecessary.

Signed-off-by: Jackie Liu <[email protected]>
@blktests-ci blktests-ci bot force-pushed the series/1075620=>linus-master branch from 7fdddff to 3c42114 Compare April 13, 2026 06:27
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.

2 participants