Skip to content

Mschaara/18977 2.8#18545

Open
mchaarawi wants to merge 2 commits into
release/2.8from
mschaara/18977-2.8
Open

Mschaara/18977 2.8#18545
mchaarawi wants to merge 2 commits into
release/2.8from
mschaara/18977-2.8

Conversation

@mchaarawi

Copy link
Copy Markdown
Contributor

Steps for the author:

  • Commit message follows the guidelines.
  • Appropriate Features or Test-tag pragmas were used.
  • Appropriate Functional Test Stages were run.
  • At least two positive code reviews including at least one code owner from each category referenced in the PR.
  • Testing is complete. If necessary, forced-landing label added and a reason added in a comment.

After all prior steps are complete:

  • Gatekeeper requested (daos-gatekeeper added as a reviewer).

…ode (#18291)

Disable the dfuse pre-read path when timed data cache is enabled but
write-back cache is disabled.

The timed-cache write-through path can hit build-style workloads where
files are rewritten, replaced by rename, or grown after the stat/open
snapshot used to launch async pre-read. The current pre-read validation
only detects a returned length mismatch, which is not sufficient to
catch those cases.

Keep existing timed-cache behavior otherwise, but avoid pre-read in this
mode until the pre-read freshness check is strengthened.

Signed-off-by: Mohamad Chaarawi <mohamad.chaarawi@hpe.com>
)

free_fd() decided whether to clear a d_file_list[] slot using the
object-wide ref_count instead of the slot's own references. When a
struct file_obj was shared across multiple fake-fd slots (via dup() or
fcntl(F_DUPFD)) and one slot's own references were exhausted while
another slot still held the object, the slot was left dangling, pointing
at memory that was later freed. close_all_fd() then dereferenced it at
exit, corrupting the heap during teardown.

Track each slot's direct fake fd open state (fd_direct_open[]) so a slot
is cleared based on its own references (direct fd + dup_ref_count), while
the object is freed only when the shared ref_count reaches zero.

Signed-off-by: Mohamad Chaarawi <mohamad.chaarawi@hpe.com>
@github-actions

Copy link
Copy Markdown

Errors are component not formatted correctly,Ticket number prefix incorrect,PR title is malformatted. See https://daosio.atlassian.net/wiki/spaces/DC/pages/11133911069/Commit+Comments,Unable to load ticket data
https://daosio.atlassian.net/browse/Mschaara/18977

@mchaarawi mchaarawi marked this pull request as ready for review June 27, 2026 17:10
@mchaarawi mchaarawi requested review from a team as code owners June 27, 2026 17:10
@mchaarawi mchaarawi requested a review from a team June 27, 2026 17:10
@mchaarawi

Copy link
Copy Markdown
Contributor Author

this is a clean cherry pick for 2 tickets that are approved to merge:
https://daosio.atlassian.net/browse/DAOS-18890
https://daosio.atlassian.net/browse/DAOS-18977

i did them in 1 PR to avoid running all the dfuse feature tests twice since they take a long time.

@mchaarawi mchaarawi added the clean-cherry-pick Cherry-pick from another branch that did not require additional edits label Jun 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clean-cherry-pick Cherry-pick from another branch that did not require additional edits

Development

Successfully merging this pull request may close these issues.

1 participant