backport upstream fixes for 5.9 Linux support
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
zfs-linux (Ubuntu) |
Fix Released
|
Medium
|
Colin Ian King | ||
Groovy |
Won't Fix
|
Undecided
|
Unassigned | ||
Hirsute |
Fix Released
|
Medium
|
Colin Ian King |
Bug Description
== SRU Request Groovy ==
Upstream zfs supports 5.9. it would be useful to backport these for users who want newer kernels.
== The Fix ==
Although 6 fixes are required, 2 add changes that get removed by a later change, so one can backport this with just the following 4 changes:
1823c8fe6a4a209
3e29e1971bbb4ab
d817c17100183b2
4b59c195ffbaebf
== Regression potential ==
The first patch just includes blkdev.h to workaround a build warning, so the results in no functional change to the working code.
The second patch removes legacy arc page free estimation by droping the accounting for inactive anonymous pages and reclaimable pages on the slab. This change removes a very minor component of the free memory calculation and speeds up arc free stats calculations. There is a potential that this small change in free page calculation may impact systems where memory is more constrained, but the change is so small I believe this really is insignificant.
The third patch is a build time detection of the kernel block allocation queue due to API changes, so should not change behaviour for current 5.8 kernels, only change behaviour for newer kernels with the newer kernel API. Hence for the released 5.8 groovy kernel the code will not be changed, so the regression potential for 5.8 is zero.
The final patch changes the META build data to allow the driver to build on newer kernels, so the risk on this change is effectively zero.
== Testing ==
Run the autotest client tests for ZFS tests:
ubuntu_
ubuntu_
ubuntu_
ubuntu_zfs_stress (stress-ng file system tests on a wide range of ZFS mount options)
Changed in zfs-linux (Ubuntu): | |
importance: | Undecided → Medium |
assignee: | nobody → Colin Ian King (colin-king) |
status: | New → In Progress |
This bug was fixed in the package zfs-linux - 0.8.4-1ubuntu13
---------------
zfs-linux (0.8.4-1ubuntu13) hirsute; urgency=medium
* Add Linux 5.9 compat fixes (LP: #1899826) 5.9-compat- add-linux- blkdev. h-include. patch 5.9-compat- NR_SLAB_ RECLAIMABLE. patch 5.9-compat- make_request_ fn-replaced- with-submi. patch Supported- Linux-Kernel- to-5.9. patch percpu_ counter- for-obj_ alloc-counter- of-Linux- ba.patch 5.10-compat- frame.h- renamed- objtool. h.patch 5.7-compat- Include- linux-sched. h-in-spl- sys-mu. patch 5.10-compat- frame.h- renamed- objtool. h.patch 5.10-compat- percpu_ ref-added- data-member. patch 5.10-compat- check_disk_ change- removed. patch disk_change removed, functionality moved to zfs_check_ media_change 5.10-compat- revalidate_ disk_size- added.patch disk_size where necessary
- 4800-Linux-
include blkdev.h in various sources
- 4801-Linux-
deprecate some older page free stats for arc free page calculation
- 4802-Linux-
API change for block allocation
- 4805-Increase-
allows driver to be built against 5.9
* Add Linux 5.10 compat fixes
- 4710-Use-
prerequisite for 4804-Linux-
- 4720-Linux-
prerequisite for next set of patches
- 4804-Linux-
rename check of linux/frame.h to linux/frame.h
- 4805-Linux-
API check to the percpu_ref structure
- 4806-Linux-
check_
- 4807-Linux-
use revalidate_
-- Colin Ian King <email address hidden> Tue, 3 Nov 2020 12:22:22 +0000