-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Initialize newly allocated buffer #11687
Conversation
Reading this, it sounds like you're saying that zio_buf_alloc/abd_alloc_for_io should return zeroed buffers, which could have a substantial performance impact. However, the code changes relate specifically to handling encryption, where perhaps performance isn't a concern? I see that this is marked as "code cleanup", not "bug fix". I presume that |
When populating a ZIL destination buffer ensure it is always zeroed before its contents are constructed. Reviewed-By: Tom Caputi <caputit1@tcnj.edu> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
2a6add8
to
a07d4ad
Compare
I've gone ahead and moved the initialization down in to |
When populating a ZIL destination buffer ensure it is always zeroed before its contents are constructed. Reviewed-by: Matthew Ahrens <mahrens@delphix.com> Reviewed-by: Tom Caputi <caputit1@tcnj.edu> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes openzfs#11687
When populating a ZIL destination buffer ensure it is always zeroed before its contents are constructed. Reviewed-by: Matthew Ahrens <mahrens@delphix.com> Reviewed-by: Tom Caputi <caputit1@tcnj.edu> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #11687
When populating a ZIL destination buffer ensure it is always zeroed before its contents are constructed. Reviewed-by: Matthew Ahrens <mahrens@delphix.com> Reviewed-by: Tom Caputi <caputit1@tcnj.edu> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes openzfs#11687
When populating a ZIL destination buffer ensure it is always zeroed before its contents are constructed. Reviewed-by: Matthew Ahrens <mahrens@delphix.com> Reviewed-by: Tom Caputi <caputit1@tcnj.edu> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes openzfs#11687
Description
When allocating a buffer using
zio_buf_alloc()
or an ABD withabd_alloc_for_io()
ensure the returned memory is initializedto zero.
How Has This Been Tested?
Manual verification and a test run of the ZTS.
Types of changes
Checklist:
Signed-off-by
.