Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File reference count bug fix #13578

Merged
merged 2 commits into from
Sep 23, 2024
Merged

Conversation

Zhangshoukui
Copy link
Contributor

@Zhangshoukui Zhangshoukui commented Sep 23, 2024

Summary

bug fix

  1. Should call fs_putfilep put fs reference when call files_fget complete
  2. FS_RAMMAP depends on FS_REFCOUNT and remove useless macro

Impact

all CONFIG_FS_REFCOUNT and CONFIG_DUMP_ON_EXIT config, A reference count exception exists. Procedure

Testing

open CONFIG_FS_REFCOUNT and CONFIG_DUMP_ON_EXIT,call files_dumplist

@github-actions github-actions bot added Area: File System File System issues Size: XS The size of the change in this PR is very small labels Sep 23, 2024
@github-actions github-actions bot added Size: S The size of the change in this PR is small and removed Size: XS The size of the change in this PR is very small labels Sep 23, 2024
@nuttxpr
Copy link

nuttxpr commented Sep 23, 2024

[Experimental Bot, please feedback here]

The provided PR description is missing crucial information and does not meet the NuttX requirements.

Here's a breakdown:

Missing Information:

  • Insufficient Summary:
    • Why: While it mentions a bug fix, it lacks a clear explanation of the problem the fix addresses. What were the symptoms of the bug?
    • What: The description of the functional change is too vague. Be specific about the code files modified and the logic adjusted.
    • How: The explanation of how the change works is insufficient. Provide a concise, technical overview of the implemented solution.
    • Links: No related NuttX issues or pull requests are linked. This context is essential for reviewers.
  • Incomplete Impact Assessment:
    • Feature Impact: The description only states "all CONFIG_FS_REFCOUNT and CONFIG_DUMP_ON_EXIT config," which isn't informative enough. Clearly state if this is a bug fix only or introduces any functional changes.
    • User Impact: Does this fix change any user-facing behavior? Be explicit.
    • Build Impact: While it mentions a "Procedure," it's unclear what this means. Specify any build system changes required.
    • Other Impacts: The remaining impact categories are completely unaddressed.
  • Insufficient Testing:
    • Environment Details: The testing environment description is too generic. Provide specific details about:
      • Build Host OS, CPU architecture, compiler version
      • Target architecture (simulator, specific hardware), board name, NuttX configuration used
    • Missing Logs: "your testing logs here" is unhelpful. Include actual relevant log snippets demonstrating:
      • The problem before the fix
      • The successful outcome after the fix

Recommendations to Meet Requirements:

  1. Expand the Summary:

    • Clearly articulate the bug's symptoms and impact.
    • Provide specific details about the code being changed.
    • Explain the solution's technical implementation concisely.
    • Link any relevant NuttX issues or pull requests.
  2. Complete the Impact Assessment:

    • Address all impact categories with "YES" or "NO."
    • Provide detailed explanations for each "YES," clearly outlining the changes and their implications.
  3. Provide Thorough Testing Information:

    • Specify the exact build host and target environments.
    • Include real log snippets that demonstrate the bug and the successful fix.

By addressing these points, you will create a PR that is informative, meets NuttX's standards, and facilitates efficient review.

@github-actions github-actions bot added Size: XS The size of the change in this PR is very small and removed Size: S The size of the change in this PR is small labels Sep 23, 2024
@xiaoxiang781216 xiaoxiang781216 merged commit d68fab1 into apache:master Sep 23, 2024
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: File System File System issues Size: XS The size of the change in this PR is very small
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants