Skip to content

Commit

Permalink
kernel-boot: Adjust rdma-load-modules@.service
Browse files Browse the repository at this point in the history
[ Upstream commit 1a4ab42 ]

rdma-load-modules@.service run in the initrd. However, it gets
terminated when initrd-cleanup.service isolates for
initrd-switch-root.target. The termination can occur in the middle of
the IPoIB initialization, leading to a failure to load netdevices.

Include 'Before=initrd.target' to ensure that the services are not
being killed when initrd-cleanup.service isolates to
initrd-switch-root.target.

Kernel log:

workqueue: Failed to create a rescuer kthread for wq "ipoib_wq": -EINTR
Cleaning Up and Shutting Down Daemons
ib0: failed to allocate device WQ
mlx5_0: failed to initialize device: ib0 port 1 (ret = -12)
mlx5_0: couldn't register ipoib port 1; error -12
workqueue: Failed to create a rescuer kthread for wq "mlx5e": -EINTR
ibp6s0f1, 1: ipoib_intf_alloc failed -12
workqueue: Failed to create a rescuer kthread for wq "mlx5e": -EINTR
ibp6s0f2, 1: ipoib_intf_alloc failed -12
workqueue: Failed to create a rescuer kthread for wq "mlx5e": -EINTR
ibp6s0f3, 1: ipoib_intf_alloc failed -12
Stopped Load RDMA modules …/rdma/modules/infiniband.conf
Stopped Load RDMA modules …m /etc/rdma/modules/rdma.conf

Fixes: 2f4fb9f ("Common infrastructure for auto loading rdma modules")
Signed-off-by: Carolina Jubran <cjubran@nvidia.com>
Signed-off-by: Nicolas Morey <nmorey@suse.com>
  • Loading branch information
cjubran authored and nmorey committed Aug 12, 2024
1 parent e15eaa3 commit 40530f6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions kernel-boot/rdma-load-modules@.service.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ Documentation=file:@CMAKE_INSTALL_FULL_DOCDIR@/udev.md
# systemd-modules-load.service
DefaultDependencies=no
Before=sysinit.target
# Kernel modules must load in initrd before initrd.target to avoid being killed
# when initrd-cleanup.service isolates to initrd-switch-root.target.
Before=initrd.target
# Do not execute concurrently with an ongoing shutdown
Conflicts=shutdown.target
Before=shutdown.target
Expand Down

0 comments on commit 40530f6

Please sign in to comment.