Bug 1215699

Summary: drbd: fix build error against kernel v6.5.4
Product: [openSUSE] openSUSE Tumbleweed Reporter: heming zhao <heming.zhao>
Component: High AvailabilityAssignee: heming zhao <heming.zhao>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Major    
Priority: P2 - High CC: qa-bugs, zzhou
Version: Current   
Target Milestone: ---   
Hardware: x86-64   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description heming zhao 2023-09-26 03:23:01 UTC
some KAPIs changed and was blocking drbd building for kernel v6.4.5.
create this bug for passing build drbd on v6.4.5
Comment 1 heming zhao 2023-09-26 03:24:51 UTC
(In reply to heming zhao from comment #0)
> some KAPIs changed and was blocking drbd building for kernel v6.4.5.
> create this bug for passing build drbd on v6.4.5

sorry for the typo, kernel version should be v6.5.4
Comment 2 heming zhao 2023-09-26 03:27:44 UTC
for fixing build error, back porting upstream patches:

c8e2a3c4355b drbd: do not allow auto-demote to be interrupted by signal
bf287c15359c compat: block: remove the unused mode argument to ->release
e3ef0e229a6a drbd: rework autopromote
0666bc5b0140 drbd: propagate exposed UUIDs only into established connections
69d9286628b7 drbd: Fix `net-options --set-defaults` to not clear the transport
3b9fcc2cfaa3 compat: block: use the holder as indication for exclusive opens
d6bbb1b1635b drbd: include source of state change in log
9e0873995334 drbd: remove unused extern for conn_try_outdate_peer()
88bf7f95dc35 drbd: Restore DATA_CORKED and CONTROL_CORKED bits
b993152e8067 compat: block: pass a gendisk to ->open
1b94c10250c7 drbd: do not send P_CURRENT_UUID to DRBD 8 peer when our disk fails
fc7b1ad2c422 drbd: reduce "net_ee not empty" info to a dynamic debug print
c34a13c3df85 compat: block: introduce holder ops
15cf257c2770 drbd: stop defining __KERNEL_SYSCALLS__
8c2c783a09d8 drbd: log numeric value of drbd_state_rv as well as string form
a98c818bd339 drbd: log error code when thread fails to start
67ac093d6dc1 drbd: build: fix spurious re-build attempt of compat.patch
fbfb92d11e64 drbd: fix error path in drbd_get_listener()
f2cd05b8d60d drbd: improve decision about marking a failed disk Outdated
0dda200877d1 drbd: allow transports to take additional krefs on a listener
Comment 3 heming zhao 2023-10-17 08:17:00 UTC
request [1] had been accepted, close this bug as fixed.

[1]: https://build.opensuse.org/request/show/1113587
Comment 4 heming zhao 2023-11-08 02:27:36 UTC
After LINBIT upstream code updating, part of the patch bsc-1215699_fix-build-error-against-kernel-v6.5.4.patch could be replaced by commit 6fd35546c2d2afd10afe.

```
commit 6fd35546c2d2afd10afe04ab9cdf4ac9ca0b3e94
Author: Moritz "WanzenBug" Wanzenböck <moritz.wanzenboeck@linbit.com>
Date:   Wed Sep 13 13:30:57 2023 +0200

    compat: sock: Remove ->sendpage*() in favour of sendmsg(MSG_SPLICE_PAGES)
```