-
Notifications
You must be signed in to change notification settings - Fork 8.2k
fat_fs: Add reentrant zephyr support #51484
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
fat_fs: Add reentrant zephyr support #51484
Conversation
83a179a to
95149bd
Compare
|
Missing west.yml manifest update to include change in external module https://github.com/zephyrproject-rtos/fatfs/pull/13/files: |
95149bd to
efab516
Compare
|
The following west manifest projects have been modified in this Pull Request:
Note: This message is automatically posted and updated by the Manifest GitHub Action. |
|
Is it possible to provide test scenarios, in Zephyr, to prove this works correctly? |
7dceddd to
e967468
Compare
Yes, I added tests. |
e967468 to
1549ef9
Compare
This commit enables zephyr to configure the FatFs FF_FS_REENTRANT option and support fs actions from multiple threads. CONFIG_FS_FATFS_REENTRANT enables the option and provides zephyr mutex wrappers. R2D2-8240 FS reentrant zephyrproject-rtos#51484 Signed-off-by: Nicola Ochsenbein <[email protected]> (cherry picked from commit 67e7e5b)
1549ef9 to
8c63f7b
Compare
9253c71 to
5f5feda
Compare
2789f9a to
129d355
Compare
129d355 to
5a73b15
Compare
nordicjm
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this can rebased now to use the 3.4 release note file
MAINTAINERS.yml
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make separate commit
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
But I am not quite sure if i should add me as a maintainer because I feel like I am just a collaborator. But I don't know if I can add a subsystem entry without a maintainer. Any ideas? @de-nordic @nordicjm
b59b6e4 to
93ba51a
Compare
Done. |
93ba51a to
671d63c
Compare
MAINTAINERS.yml
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rename this as "FatFs reentrant support"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
MAINTAINERS.yml
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see no reason to pass Maintainership on this file, it is not even touched in this PR. Remove it from list.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, you are right.
MAINTAINERS.yml
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
List is missing test_fat_file_reentrant.c file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added it.
671d63c to
d65f540
Compare
This commit enables zephyr to configure the FatFs FF_FS_REENTRANT option and support fs actions from multiple threads. CONFIG_FS_FATFS_REENTRANT enables the option and provides zephyr mutex wrappers. Signed-off-by: Nicola Ochsenbein <[email protected]>
This commit adds tests for the FatFs FF_FS_REENTRANT option. Signed-off-by: Nicola Ochsenbein <[email protected]>
ox11 is maintaining on FatFs. Signed-off-by: Nicola Ochsenbein <[email protected]>
Update release notes 3.4 with the new FatFs reentrant Kconfig option. Signed-off-by: Nicola Ochsenbein <[email protected]>
d65f540 to
c789f7b
Compare
|
Could you please review this PR again @nordicjm @de-nordic ? Did I miss something that I have to do? |
|
Thank you for your approves @nordicjm @de-nordic. Who can/will merge this PR? - I canot merge it, as I am not authorized. |
| "Filesystems: FatFs reentrant support": | ||
| status: maintained | ||
| maintainers: | ||
| - ox11 | ||
| files: | ||
| - modules/fatfs/zfs_ffsystem.c | ||
| - tests/subsys/fs/fat_fs_api/src/test_fat_file_reentrant.c | ||
| labels: | ||
| - "area: File System" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should keep the granularity of code maintainership at a manageable level
It does not make sense to have "FatFs reentrant support" as a dedicated area -- this is too much granularity.
Please revert this change or define the maintainership as "Filesystems: Fatfs."
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not a maintainer of the entire FatFS module.
My suggestion would be to either create a new module like this
"Filesystems: FatFs":
status: maintained
maintainers:
- de-nordic
collaborators:
- ox11
files:
- modules/fatfs
- tests/subsys/fs/common
- tests/subsys/fs/fat_fs_api
- tests/subsys/fs/fat_fs_dual_drive
labels:
- "area: File System"
or to add myself to the collaborators in the fs area
Filesystems:
status: maintained
maintainers:
- de-nordic
collaborators:
- Laczen
- nashif
- ox11
files:
- include/zephyr/fs/
- samples/subsys/fs/
- subsys/fs/
- tests/subsys/fs/
labels:
- "area: File System"
The first option should IMHO be created by @de-nordic as he would be mentioned as maintainer. Additionally, is there anyone else that should be mentioned as collaborator?
This commit enables zephyr to configure the FatFs FF_FS_REENTRANT option and support fs actions from multiple threads. CONFIG_FS_FATFS_REENTRANT enables the option and provides zephyr mutex wrappers. R2D2-8240 FS reentrant zephyrproject-rtos#51484 Signed-off-by: Nicola Ochsenbein <[email protected]>
This commit enables zephyr to configure the FatFs FF_FS_REENTRANT option and support fs actions from multiple threads. CONFIG_FS_FATFS_REENTRANT enables the option and provides zephyr mutex wrappers. R2D2-8240 FS reentrant zephyrproject-rtos#51484 Signed-off-by: Nicola Ochsenbein <[email protected]> (cherry picked from commit 67e7e5b) (cherry picked from commit dd7f6e4)
This commit enables zephyr to configure the FatFs FF_FS_REENTRANT
option and support fs actions from multiple threads.
CONFIG_FS_FATFS_REENTRANT enables the option and provides zephyr
mutex wrappers.
Signed-off-by: Nicola Ochsenbein [email protected]