Linux NFS development
 help / color / mirror / Atom feed
From: Kamal Heib <kheib@redhat.com>
To: Ronnie Sahlberg <lsahlber@redhat.com>,
	"Herton R. Krzesinski" <herton@redhat.com>
Cc: Red Hat INTERNAL-ONLY kernel discussion list 
	<rhkernel-list@redhat.com>, linux-nfs <linux-nfs@vger.kernel.org>
Subject: Re: Help with config change for CIFS
Date: Tue, 13 Oct 2020 17:04:43 +0300	[thread overview]
Message-ID: <7b087315-7140-e988-c2d4-d3fd9077247e@redhat.com> (raw)
In-Reply-To: <200195397.3817648.1602575184327.JavaMail.zimbra@redhat.com>



On 10/13/20 10:46 AM, Ronnie Sahlberg wrote:
> Hi List,
> 
> I have some issues with a config change can not find what else I need to do to fix this.
> 
> I tried to enable RDMA support in the cifs client, by simply doing :
> diff --git a/redhat/configs/generic/CONFIG_CIFS_SMB_DIRECT b/redhat/configs/generic/CONFIG_CIFS_SMB_DIRECT
> index 849bffb38ecd..88e746ddab11 100644
> --- a/redhat/configs/generic/CONFIG_CIFS_SMB_DIRECT
> +++ b/redhat/configs/generic/CONFIG_CIFS_SMB_DIRECT
> @@ -1 +1 @@
> -# CONFIG_CIFS_SMB_DIRECT is not set
> +CONFIG_CIFS_SMB_DIRECT=y
> 
> 
> But this fails with the brew build with:
> Depmod failure
> + '[' -s depmod.out ']'
> + echo 'Depmod failure'
> + cat depmod.out
> depmod: WARNING: /builddir/build/BUILDROOT/kernel-4.18.0-240.2.el8.rdma2.x86_64/./lib/modules/4.18.0-240.2.el8.rdma2.x86_64+debug/kernel/fs/cifs/cifs.ko needs unknown symbol ib_free_cq_user
> depmod: WARNING: /builddir/build/BUILDROOT/kernel-4.18.0-240.2.el8.rdma2.x86_64/./lib/modules/4.18.0-240.2.el8.rdma2.x86_64+debug/kernel/fs/cifs/cifs.ko needs unknown symbol __ib_alloc_pd
> depmod: WARNING: /builddir/build/BUILDROOT/kernel-4.18.0-240.2.el8.rdma2.x86_64/./lib/modules/4.18.0-240.2.el8.rdma2.x86_64+debug/kernel/fs/cifs/cifs.ko needs unknown symbol rdma_resolve_addr
> depmod: WARNING: /builddir/build/BUILDROOT/kernel-4.18.0-240.2.el8.rdma2.x86_64/./lib/modules/4.18.0-240.2.el8.rdma2.x86_64+debug/kernel/fs/cifs/cifs.ko needs unknown symbol ib_dereg_mr_user
> depmod: WARNING: /builddir/build/BUILDROOT/kernel-4.18.0-240.2.el8.rdma2.x86_64/./lib/modules/4.18.0-240.2.el8.rdma2.x86_64+debug/kernel/fs/cifs/cifs.ko needs unknown symbol ib_event_msg
> depmod: WARNING: /builddir/build/BUILDROOT/kernel-4.18.0-240.2.el8.rdma2.x86_64/./lib/modules/4.18.0-240.2.el8.rdma2.x86_64+debug/kernel/fs/cifs/cifs.ko needs unknown symbol rdma_disconnect
> depmod: WARNING: /builddir/build/BUILDROOT/kernel-4.18.0-240.2.el8.rdma2.x86_64/./lib/modules/4.18.0-240.2.el8.rdma2.x86_64+debug/kernel/fs/cifs/cifs.ko needs unknown symbol ib_alloc_mr_user
> depmod: WARNING: /builddir/build/BUILDROOT/kernel-4.18.0-240.2.el8.rdma2.x86_64/./lib/modules/4.18.0-240.2.el8.rdma2.x86_64+debug/kernel/fs/cifs/cifs.ko needs unknown symbol rdma_resolve_route
> depmod: WARNING: /builddir/build/BUILDROOT/kernel-4.18.0-240.2.el8.rdma2.x86_64/./lib/modules/4.18.0-240.2.el8.rdma2.x86_64+debug/kernel/fs/cifs/cifs.ko needs unknown symbol rdma_create_qp
> depmod: WARNING: /builddir/build/BUILDROOT/kernel-4.18.0-240.2.el8.rdma2.x86_64/./lib/modules/4.18.0-240.2.el8.rdma2.x86_64+debug/kernel/fs/cifs/cifs.ko needs unknown symbol ib_map_mr_sg
> depmod: WARNING: /builddir/build/BUILDROOT/kernel-4.18.0-240.2.el8.rdma2.x86_64/./lib/modules/4.18.0-240.2.el8.rdma2.x86_64+debug/kernel/fs/cifs/cifs.ko needs unknown symbol __ib_alloc_cq_any
> depmod: WARNING: /builddir/build/BUILDROOT/kernel-4.18.0-240.2.el8.rdma2.x86_64/./lib/modules/4.18.0-240.2.el8.rdma2.x86_64+debug/kernel/fs/cifs/cifs.ko needs unknown symbol rdma_destroy_qp
> depmod: WARNING: /builddir/build/BUILDROOT/kernel-4.18.0-240.2.el8.rdma2.x86_64/./lib/modules/4.18.0-240.2.el8.rdma2.x86_64+debug/kernel/fs/cifs/cifs.ko needs unknown symbol rdma_connect
> depmod: WARNING: /builddir/build/BUILDROOT/kernel-4.18.0-240.2.el8.rdma2.x86_64/./lib/modules/4.18.0-240.2.el8.rdma2.x86_64+debug/kernel/fs/cifs/cifs.ko needs unknown symbol rdma_destroy_id
> depmod: WARNING: /builddir/build/BUILDROOT/kernel-4.18.0-240.2.el8.rdma2.x86_64/./lib/modules/4.18.0-240.2.el8.rdma2.x86_64+debug/kernel/fs/cifs/cifs.ko needs unknown symbol __rdma_create_id
> depmod: WARNING: /builddir/build/BUILDROOT/kernel-4.18.0-240.2.el8.rdma2.x86_64/./lib/modules/4.18.0-240.2.el8.rdma2.x86_64+debug/kernel/fs/cifs/cifs.ko needs unknown symbol ib_drain_qp
> depmod: WARNING: /builddir/build/BUILDROOT/kernel-4.18.0-240.2.el8.rdma2.x86_64/./lib/modules/4.18.0-240.2.el8.rdma2.x86_64+debug/kernel/fs/cifs/cifs.ko needs unknown symbol ib_dealloc_pd_user
> + exit 1
> RPM build errors:
> 
> These symbols should be available already in the infiniband module, so I am a little at loss.
> Does anyone know what else I need to chang eto get this config change to compile in brew?
> 
> regards
> ronnie sahlberg
> 


Hi Ronnie,

Looks like you need to add "cifs" directory to the fs filtered directories under
"redhat/filter-modules.sh" script to let the cifs.ko know about the rdma symbols.

I have created [1] brew build with the following patch and looks like the issue
is gone.

commit aab32aec9fff2e0acd31885b7f696a582e7df42f
Author: Kamal Heib <kheib@redhat.com>
Date:   Tue Oct 13 10:59:24 2020 +0300

    redhat/configs: Update CONFIG_CIFS_SMB_DIRECT

    Upstream Status: RHEL only.

    Update redhat/configs for CONFIG_CIFS_SMB_DIRECT.

    Autogenerated & verified by editconfig.

diff --git a/redhat/configs/generic/CONFIG_CIFS_SMB_DIRECT
b/redhat/configs/generic/CONFIG_CIFS_SMB_DIRECT
index 849bffb38ecd..88e746ddab11 100644
--- a/redhat/configs/generic/CONFIG_CIFS_SMB_DIRECT
+++ b/redhat/configs/generic/CONFIG_CIFS_SMB_DIRECT
@@ -1 +1 @@
-# CONFIG_CIFS_SMB_DIRECT is not set
+CONFIG_CIFS_SMB_DIRECT=y
diff --git a/redhat/filter-modules.sh b/redhat/filter-modules.sh
index 66ff2ec80060..48cc8df145b6 100755
--- a/redhat/filter-modules.sh
+++ b/redhat/filter-modules.sh
@@ -28,7 +28,7 @@ scsidrvs="aacraid aic7xxx aic94xx be2iscsi bfa bnx2i bnx2fc
csiostor cxgbi esas2

 usbdrvs="atm image misc serial wusbcore"

-fsdrvs="affs befs coda cramfs ecryptfs hfs hfsplus jfs minix ncpfs nilfs2 ocfs2
reiserfs romfs squashfs sysv ubifs ufs"
+fsdrvs="affs befs coda cramfs ecryptfs hfs hfsplus jfs minix ncpfs nilfs2 ocfs2
reiserfs romfs squashfs sysv ubifs ufs cifs"

 netprots="6lowpan appletalk atm ax25 batman-adv bluetooth can dccp dsa
ieee802154 irda l2tp mac80211 mac802154 mpls netrom nfc rds rfkill rose sctp smc
wireless"


[1] - https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=31931687

Thanks,
Kamal


      reply	other threads:[~2020-10-13 14:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <566011876.3817284.1602574913869.JavaMail.zimbra@redhat.com>
2020-10-13  7:46 ` Help with config change for CIFS Ronnie Sahlberg
2020-10-13 14:04   ` Kamal Heib [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7b087315-7140-e988-c2d4-d3fd9077247e@redhat.com \
    --to=kheib@redhat.com \
    --cc=herton@redhat.com \
    --cc=linux-nfs@vger.kernel.org \
    --cc=lsahlber@redhat.com \
    --cc=rhkernel-list@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox