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
Fix for current_kernel_time in 4.20 on 0.7.x #8227
Conversation
While openzfs/spl@cd1b28e fixed the 4.20 current_kernel_time issues in spl as per openzfs#8074 in .07.x, current_kernel_time is still being used inside zpios-ctl.h in 0.7.x. I believe this may fix this issue in 0.7.x to allow it to compile successfully for kernel 4.2.0.
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.
LGTM
Hey there, I just stumbled upon this after upgrades to my Arch Linux install with zfs 0.7.12 to the 4.20 kernel. Just adding a datapoint: This patch works flawlessly 👍 Would be grateful if this could get merged and tagged as soon as possible, as 4.20 is the kernel that is distributed with Arch right now and currently zfs breaks DKMS builds without this patch. |
@tonyhutter If you would consider adding this to https://github.com/zfsonlinux/zfs/projects/21 ? |
just a copy of openzfs#8227 with builder configuration, want to test the patch. Requires-spl: spl-0.7-release Signed-off-by: gyakovlev@gentoo.org
just a copy of openzfs#8227 with builder configuration, want to test the patch. Requires-spl: spl-0.7-release Requires-builders: test unstable Signed-off-by: gyakovlev@gentoo.org
just a copy of openzfs#8227 with builder configuration, want to test the patch. Requires-spl: spl-0.7-release Requires-builders: test unstable Signed-off-by: gyakovlev@gentoo.org
just a copy of openzfs#8227 with builder configuration, want to test the patch. Requires-spl: spl-0.7-release Requires-builders: test unstable Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
Closing, this fix has been included in the openzfs/spl#713 patch set. |
While openzfs/spl@cd1b28e fixed the 4.20 current_kernel_time issues in the 0.7.x spl tree as per #8074 in 0.7.x, current_kernel_time is still being used inside zpios-ctl.h inside the 0.7.x zfs tree.
I believe this patch may fix this issue in 0.7.x to allow it to compile successfully for linux kernel 4.20.
Apologies if the coding style is inappropriate. The compiled module once so modified does work on my system, but I have not run tests on this.
current_kernel_time needs to be updated for linux kernel 4.20 compatibility. While the 0.7.x spl's sys/include/time.h file was updated, in the 0.7.x zfs tree zpios-ctl.h also uses current_kernel_time.
Motivation and Context
Fixed compile for 4.20 on 0.7.x on my ubuntu system.
The modifications as as per the issue referenced here: #8074 and also as applied in this commit: openzfs/spl@cd1b28e
Description
How Has This Been Tested?
Types of changes
Checklist:
(Note that this is for the 0.7.x branch and NOT for master.)
Signed-off-by
.