Skip to content

Conversation

@blktests-ci
Copy link

@blktests-ci blktests-ci bot commented Nov 18, 2025

Pull request for series with
subject: block: change __blkdev_issue_discard() return type to void
version: 1
url: https://patchwork.kernel.org/project/linux-block/list/?series=1024711

@blktests-ci
Copy link
Author

blktests-ci bot commented Nov 18, 2025

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

@blktests-ci
Copy link
Author

blktests-ci bot commented Nov 19, 2025

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

@blktests-ci blktests-ci bot force-pushed the series/1024711=>linus-master branch from bf966b4 to 9ae67e7 Compare November 19, 2025 00:30
@blktests-ci blktests-ci bot force-pushed the linus-master_base branch from 4458758 to 6f43942 Compare November 21, 2025 09:45
@blktests-ci
Copy link
Author

blktests-ci bot commented Nov 21, 2025

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

@blktests-ci blktests-ci bot force-pushed the series/1024711=>linus-master branch from 9ae67e7 to c406463 Compare November 21, 2025 09:52
@blktests-ci blktests-ci bot force-pushed the linus-master_base branch from 6f43942 to ec9caac Compare December 8, 2025 05:15
__blkdev_issue_discard() always returns 0, making all error checking
at call sites dead code. The function simply stops allocating bios
and returns 0.

Discard operations are advisory/optimization, not critical. Some callers
have dead error checking code expecting wrong return codes such as
-ENOTSUPP when 0 is only returned.

This patch changes __blkdev_issue_discard() return type to void and
removes dead error checking code from all call sites:

* Block layer:
  blk-lib.c: Remove return value, update blkdev_issue_discard() caller

* Device mapper:
  dm-thin.c: Change issue_discard() to void, update both callers
  md.c: Simplify conditional to just check for NULL bio

* NVMe target:
  io-cmd-bdev.c: Remove dead error handling and error_slba assignment

* Filesystems:
  f2fs/segment.c: Preserve fault injection
  xfs/xfs_discard.c: Update both xfs_discard_extents() and
  xfs_discard_rtdev_extents() to remove dead error checks

Signed-off-by: Chaitanya Kulkarni <ckulkarnilinux@gmail.com>
@blktests-ci
Copy link
Author

blktests-ci bot commented Dec 8, 2025

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

@blktests-ci blktests-ci bot force-pushed the series/1024711=>linus-master branch from c406463 to e1e755e Compare December 8, 2025 05:24
@blktests-ci blktests-ci bot force-pushed the linus-master_base branch from ec9caac to 4a5ddea Compare December 28, 2025 08:34
@blktests-ci
Copy link
Author

blktests-ci bot commented Dec 28, 2025

At least one diff in series https://patchwork.kernel.org/project/linux-block/list/?series=1024711 irrelevant now for [{'archived': False, 'project': 241}] search patterns

@blktests-ci blktests-ci bot closed this Dec 28, 2025
@blktests-ci blktests-ci bot deleted the series/1024711=>linus-master branch January 9, 2026 05:03
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.

3 participants