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

fs/reference_count: set default reference count option to n #13519

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Oct 21, 2024

  1. fs/reference_count: set default reference count option to n

    Most of developers will not have the scenarios of open/close file descriptors in multi-threads,
    The default option will incur additional code size overhead for such devices.
    this PR will preserve the behavior before PR#13296 was introduced, and ensure that the default code size is not affected.
    
    Note that this option will ensure the safety of access to the file
    system from multi-tasks (Task A blocking rw(fd), then Task B close(fd)),
    the disadvantage is that it will increase the amount of code-size,
    there is no need to enable this option if the application could ensure
    he file operations are safe.
    
    Signed-off-by: chao an <[email protected]>
    anchao committed Oct 21, 2024
    Configuration menu
    Copy the full SHA
    64dba1f View commit details
    Browse the repository at this point in the history