-
Notifications
You must be signed in to change notification settings - Fork 302
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
DAOS-16556 client: call fstat() before mmap() to update file status in kernel #15244
Conversation
…n kernel Features: pil4dfs Skip-func-test-leap15: false Skip-func-vm-test-leap15: false Required-githooks: true Skipped-githooks: codespell Signed-off-by: Lei Huang <[email protected]>
Ticket title is 'dfuse/daos_build.py:DaosBuild.test_dfuse_daos_build_wt_pil4df - Failure to build over dfuse with il in mode nocache' |
All tests in CI (including Functional on Leap 15.5) passed. |
@@ -6302,6 +6302,14 @@ new_mmap(void *addr, size_t length, int prot, int flags, int fd, off_t offset) | |||
|
|||
atomic_fetch_add_relaxed(&num_mmap, 1); | |||
|
|||
if ((fd < FD_FILE_BASE) && (fd_directed >= FD_FILE_BASE) && d_compatible_mode) { | |||
/* DAOS-14494: Force the kernel to update the size before mapping. */ |
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've linked DAOS-14494 and DAOS-16556 in Jira.
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.
Sounds good. Thank you very much!
@mchaarawi Could you please review this PR when you have time? It is a small one. Thank you very much! |
@mchaarawi Shall we back port this PR to 2.6? Thank you! |
yes makes sense to do that |
…n kernel (#15244) Signed-off-by: Lei Huang <[email protected]>
In the compatible mode of libpil4dfs, write() is done in user mode. We need to let kernel to update file status before calling mmap().
Features: pil4dfs
Skip-func-test-leap15: false
Skip-func-vm-test-leap15: false
Required-githooks: true
Skipped-githooks: codespell
Before requesting gatekeeper:
Features:
(orTest-tag*
) commit pragma was used or there is a reason documented that there are no appropriate tags for this PR.Gatekeeper: