Skip to content

Fix num_in_flight not being incremented for split ops - #72583

Merged
JonBailey1993 merged 1 commit into
ceph:mainfrom
JonBailey1993:direct_reads_num_in_flight
Nov 12, 2026
Merged

JonBailey1993 merged 1 commit into
ceph:mainfrom
JonBailey1993:direct_reads_num_in_flight

Conversation

@JonBailey1993

@JonBailey1993 JonBailey1993 commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Depends on #72282 which is in QA now

Moves num_in_flight so it is incremented in the new _take_inflight_slot() function, so the counter is incremented for both SplitOp and non-SplitOp IOs, as previously SplitOps were not incrementing this counter which could cause the value to be decremented further than it was incremented.

Fix is based on #72282 which introduces the _take_inflight_slot() function which this makes use of.

Fixes: https://tracker.ceph.com/issues/81631

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

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

@JonBailey1993 JonBailey1993 changed the title Direct reads num in flight fix num_in_flight not being incremented for split ops Oct 12, 2026
@JonBailey1993 JonBailey1993 changed the title fix num_in_flight not being incremented for split ops Fix num_in_flight not being incremented for split ops Oct 12, 2026
@JonBailey1993
JonBailey1993 force-pushed the direct_reads_num_in_flight branch from cfb90e2 to c818f2a Compare October 12, 2026 08:03
@github-actions

Copy link
Copy Markdown

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

The num_in_flight counter was only incremented in _send_op_account() which split
ops do not go through. Adding it to the _take_inflight_slot() function allows us
to ensure it is incremented in split ops at the same point it is for non split ops.

Fixed: https://tracker.ceph.com/issues/81631
Signed-off-by: Jon Bailey <[email protected]>
Assisted-by: IBM Bob 2.3.0

@aainscow aainscow left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@SrinivasaBharath

Copy link
Copy Markdown
Contributor

This PR has been added to wip-bharath11-testing-20261027.070430-main.

@connorfawcett

Copy link
Copy Markdown
Contributor

@JonBailey1993
JonBailey1993 merged commit aedda65 into ceph:main Nov 12, 2026
18 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.

5 participants