Skip to content

reef: blk/kerneldevice: some fix for device discard#62481

Merged
ifed01 merged 7 commits intoceph:reeffrom
YiteGu:wip-some-fix-for-discard-reef
May 19, 2025
Merged

reef: blk/kerneldevice: some fix for device discard#62481
ifed01 merged 7 commits intoceph:reeffrom
YiteGu:wip-some-fix-for-discard-reef

Conversation

@YiteGu
Copy link
Member

@YiteGu YiteGu commented Mar 25, 2025

  1. blk/kernel: bring "bdev_async_discard" config parameter back.
  2. blk/kerneldevice: add perfcounter for block async discard.
  3. blk/kerneldevice: count ops not bytes in discard_op perf counter.
  4. blk/kerneldevice: fix invalid iterator usage after erase in discard_queued traversal.
  5. blk/kernel: New perf counter to view amount of discard threads

backport of #62254, #58952, #62150, #62471, #62251
parent tracker: https://tracker.ceph.com/issues/70335, https://tracker.ceph.com/issues/70636

Contribution Guidelines

  • To sign and title your commits, please refer to Submitting Patches to Ceph.

  • If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands

@YiteGu YiteGu requested a review from a team as a code owner March 25, 2025 07:39
@github-actions github-actions bot added this to the reef milestone Mar 25, 2025
@YiteGu YiteGu requested a review from ifed01 March 25, 2025 07:40
@YiteGu YiteGu force-pushed the wip-some-fix-for-discard-reef branch from 8ff001b to 961f72d Compare March 25, 2025 11:56
@YiteGu YiteGu force-pushed the wip-some-fix-for-discard-reef branch 2 times, most recently from 0f9fe4d to 4e55c4b Compare March 25, 2025 17:04
@ifed01
Copy link
Contributor

ifed01 commented Mar 28, 2025

@YiteGu - do we reaaly need feeb02e be the part of this PR. IMO it looks completely unrelated. May be have another backport PR for that?

@ifed01
Copy link
Contributor

ifed01 commented Mar 28, 2025

Mind backporting this commit as well? 24d6002

@YiteGu
Copy link
Member Author

YiteGu commented Mar 29, 2025

@YiteGu - do we reaaly need feeb02e be the part of this PR. IMO it looks completely unrelated. May be have another backport PR for that?

Yes, It's really unrelated. The reason is that a92254f need feeb02e, otherwise, the conflict would be too great.

@YiteGu
Copy link
Member Author

YiteGu commented Mar 29, 2025

Mind backporting this commit as well? 24d6002

done

@github-actions
Copy link

github-actions bot commented Apr 8, 2025

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

@YiteGu
Copy link
Member Author

YiteGu commented Apr 10, 2025

@YiteGu - do we reaaly need feeb02e be the part of this PR. IMO it looks completely unrelated. May be have another backport PR for that?

Yes, It's really unrelated. The reason is that a92254f need feeb02e, otherwise, the conflict would be too great.

@ifed01 waiting PR(#62721) merged

@ifed01
Copy link
Contributor

ifed01 commented Apr 10, 2025

@YiteGu - do we reaaly need feeb02e be the part of this PR. IMO it looks completely unrelated. May be have another backport PR for that?

Yes, It's really unrelated. The reason is that a92254f need feeb02e, otherwise, the conflict would be too great.

@ifed01 waiting PR(#62721) merged

Done, please rebase

ifed01 and others added 7 commits April 10, 2025 19:43
To ensure backword compatibility for clusters with this parameter
previously set to true.

Signed-off-by: Igor Fedotov <igor.fedotov@croit.io>
(cherry picked from commit ea0df9a)
Signed-off-by: Yite Gu <yitegu0@gmail.com>
(cherry picked from commit 90835d6)
Adding perfcounter helps to understand the status of async discard.

Signed-off-by: Yite Gu <yitegu0@gmail.com>
(cherry picked from commit f446f4c)
Fixes: https://tracker.ceph.com/issues/70335

Signed-off-by: Igor Fedotov <igor.fedotov@croit.io>
(cherry picked from commit d7467b0)
…ueued traversal

fixes: https://tracker.ceph.com/issues/70636

Signed-off-by: Yite Gu <guyite@bytedance.com>
(cherry picked from commit f1f0beb)
Signed-off-by: Yite Gu <guyite@bytedance.com>
(cherry picked from commit c4528ec)
Signed-off-by: Igor Fedotov <igor.fedotov@croit.io>
(cherry picked from commit 5aba1c9)
@YiteGu YiteGu force-pushed the wip-some-fix-for-discard-reef branch from 08ceea7 to 3850cb4 Compare April 10, 2025 11:57
@YiteGu YiteGu requested a review from ifed01 April 10, 2025 12:07
@YiteGu
Copy link
Member Author

YiteGu commented Apr 10, 2025

@YiteGu - do we reaaly need feeb02e be the part of this PR. IMO it looks completely unrelated. May be have another backport PR for that?

Yes, It's really unrelated. The reason is that a92254f need feeb02e, otherwise, the conflict would be too great.

@ifed01 waiting PR(#62721) merged

Done, please rebase

done

@Naveenaidu
Copy link
Contributor

RADOS approved: https://tracker.ceph.com/issues/71030#note-9

@ifed01 ifed01 merged commit e2e30b5 into ceph:reef May 19, 2025
9 checks passed
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.

4 participants