Skip to content

DLPX-91780 Merge conflict in linux-kernel-aws after DLPX-91748 #52

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

Closed
wants to merge 18 commits into from

Conversation

manoj-joseph
Copy link

@manoj-joseph manoj-joseph commented Aug 1, 2024

Problem

Seb: I think we have a problem with the kernel repos this morning (all except the gcp repo, which wasn't touched). It looks like upstream was merged into develop instead of having had our patch sets rebased on top of upstream (starting with the @@DELPHIX_PATCHSET_START@@ commit).

Solution

Started with upstreams/develop and cherry-picked our patches with git cherry-pick e82f4ad1c5c86c616a45d4b9d69309e9b8b4a532 ^..22f636412ca3cadb8415a44e226f21248137bc74.
After that, we are left with the following.

delphix@mj-build:~/linux-kernel-aws$ git log -20 --abbrev-commit --oneline --graph 
* dbc3b147e67c (HEAD -> merge-2, origin/pr/manoj-joseph/DLPX-91780-2) DLPX-87970 Move Delphix annotations to linux-pkg to reduce merge conflicts (#48)
* 8d1d1266e138 DLPX-87710 upgrade from 6.0.16.0 to 15.0.0.0 failed because disk quota error (#46)
* 8500225c4477 DLPX-87344 Fix kernel merge conflict with upstream
* e9b211011ff4 DLPX-86675 Disk quota exceeded when unpacking an upgrade image (#44)
* 45685fbf006b DLPX-86177 Azure Accelerated networking broken because Mellanox drivers absent in kernel (#37)
* f65f10aa900c DLPX-84906 Disable frame buffer drivers
* 552f42300c68 DLPX-84995 NFSD: Never call nfsd_file_gc() in foreground paths (#35)
* cb3e8b546d0a DLPX-84985 target: iscsi: fix deadlock in the iSCSI login code (#30)
* 6a11d4d34a27 DLPX-84907 CVE-2022-3628 (#29)
* 5510197148b3 DLPX-84469 Users unable to connect to CIFS mounts (#28)
* 76cf593eed0d DLPX-83701 Make function mnt_add_count() traceable (#24)
* cef038a7a190 target: login should wait until tx/rx threads have properly started. (#21)
* c08a59994b2c TOOL-16649 CONFIG_MD is needed on the buildserver (#22)
* c9c038191f25 DLPX-83442 Disable various kernel modules which we don't use (#20)
* 368917abcf7e DLPX-82827 Fix for Solaris NFSv4 client mounts (#19)
* 8f95b92fccc4 DLPX-72065 Aborted iSCSI command never completes after LUN reset (#4)
* b96dd198b316 DLPX-74216 nfs-server restarts fail when order-5 allocations are exhausted (#3)
* 2b6d9ab90864 DLPX-71852 iSCSI: journal flooded with "Unable to locate Target IQN" messages (#2)
* 825143c5a570 @@DELPHIX_PATCHSET_START@@
* 4bc3905bbe4e (tag: Ubuntu-aws-5.15-5.15.0-1066.72_20.04.1, origin/upstreams/develop, upstreams-develop) UBUNTU: Ubuntu-aws-5.15-5.15.0-1066.72~20.04.1
delphix@mj-build:~/linux-kernel-aws$ 

Note: The following three commits are empty after merge and those fixes are no longer needed. The empty commits will be discarded before pushing to develop.

* 552f42300c68 DLPX-84995 NFSD: Never call nfsd_file_gc() in foreground paths (#35)
* 368917abcf7e DLPX-82827 Fix for Solaris NFSv4 client mounts (#19)
* b96dd198b316 DLPX-74216 nfs-server restarts fail when order-5 allocations are exhausted (#3)

pzakha and others added 18 commits August 1, 2024 00:21
The checks in nfsd_file_acquire() and nfsd_file_put() that directly
invoke filecache garbage collection are intended to keep cache
occupancy between a low- and high-watermark. The reason to limit the
capacity of the filecache is to keep filecache lookups reasonably
fast.

However, invoking garbage collection at those points has some
undesirable negative impacts. Files that are held open by NFSv4
clients often push the occupancy of the filecache over these
watermarks. At that point:

- Every call to nfsd_file_acquire() and nfsd_file_put() results in
  an LRU walk. This has the same effect on lookup latency as long
  chains in the hash table.
- Garbage collection will then run on every nfsd thread, causing a
  lot of unnecessary lock contention.
- Limiting cache capacity pushes out files used only by NFSv3
  clients, which are the type of files the filecache is supposed to
  help.

To address those negative impacts, remove the direct calls to the
garbage collector.
@manoj-joseph
Copy link
Author

manoj-joseph commented Aug 6, 2024

Force pushed to develop:

delphix@mj-build:~/linux-kernel-aws$ git log -20 --abbrev-commit --oneline 
3264826b17d9 (HEAD -> merge-3) DLPX-87970 Move Delphix annotations to linux-pkg to reduce merge conflicts (#48)
8e1f725f7ad7 DLPX-87710 upgrade from 6.0.16.0 to 15.0.0.0 failed because disk quota error (#46)
69efe80725fe DLPX-87344 Fix kernel merge conflict with upstream
dcc3ffa97126 DLPX-86675 Disk quota exceeded when unpacking an upgrade image (#44)
bd20e4887374 DLPX-86177 Azure Accelerated networking broken because Mellanox drivers absent in kernel (#37)
bd724fff4df5 DLPX-84906 Disable frame buffer drivers
286c2db2d358 DLPX-84985 target: iscsi: fix deadlock in the iSCSI login code (#30)
d910f5fb10aa DLPX-84907 CVE-2022-3628 (#29)
b5a4282982cb DLPX-84469 Users unable to connect to CIFS mounts (#28)
9823aa0bd840 DLPX-83701 Make function mnt_add_count() traceable (#24)
b2238ac684d0 target: login should wait until tx/rx threads have properly started. (#21)
086e8e8d59c8 TOOL-16649 CONFIG_MD is needed on the buildserver (#22)
cc9f71716af9 DLPX-83442 Disable various kernel modules which we don't use (#20)
99378be2ddc6 DLPX-72065 Aborted iSCSI command never completes after LUN reset (#4)
271ade520f9a DLPX-71852 iSCSI: journal flooded with "Unable to locate Target IQN" messages (#2)
825143c5a570 @@DELPHIX_PATCHSET_START@@
4bc3905bbe4e (tag: Ubuntu-aws-5.15-5.15.0-1066.72_20.04.1, origin/upstreams/develop, upstreams-develop) UBUNTU: Ubuntu-aws-5.15-5.15.0-1066.72~20.04.1
de475514fae0 UBUNTU: link-to-tracker: update tracking bug
14fe5562018c UBUNTU: Start new release
a9ab83fb2df0 UBUNTU: Ubuntu-aws-5.15-5.15.0-1065.71~20.04.1
delphix@mj-build:~/linux-kernel-aws$ git diff origin/pr/manoj-joseph/DLPX-91780-2
delphix@mj-build:~/linux-kernel-aws$ git push --force origin merge-3:develop
Enumerating objects: 132, done.
Counting objects: 100% (132/132), done.
Delta compression using up to 2 threads
Compressing objects: 100% (69/69), done.
Writing objects: 100% (104/104), 13.95 KiB | 6.98 MiB/s, done.
Total 104 (delta 74), reused 45 (delta 31)
remote: Resolving deltas: 100% (74/74), completed with 26 local objects.
remote: Bypassed rule violations for refs/heads/develop:
remote: 
remote: - Changes must be made through a pull request.
remote: 
remote: - 2 of 2 required status checks are expected.
remote: 
remote: 
remote: GitHub found 2 vulnerabilities on delphix/linux-kernel-aws's default branch (2 moderate). To find out more, visit:
remote:      https://github.com/delphix/linux-kernel-aws/security/dependabot
remote: 
To https://github.com/delphix/linux-kernel-aws.git
 + 11e22c357157...3264826b17d9 merge-3 -> develop (forced update)
delphix@mj-build:~/linux-kernel-aws$ 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

7 participants