Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-9020

Where is libcfs_sock_wmem_queued defined in b2_8/b2_9

    XMLWordPrintable

Details

    • Question/Request
    • Resolution: Not a Bug
    • Minor
    • None
    • None
    • None
    • build
    • 9223372036854775807

    Description

      'libcfs_sock_wmem_queued' is referenced in lnet/klnds/socklnd/

      {socklnd.c,socklnd_cb.c}

      .
      It is defined in b2_7 in libcfs/include/libcfs/linux/linux-tcpip.h:
      static inline int
      libcfs_sock_wmem_queued(struct socket *sock)
      {
      return sock->sk->sk_wmem_queued;
      }

      But that file is removed in b2_8 and b2_9.

      I tried to compile b2_9 and compilation failed:
      tmp/rpmbuild-lustre-jlan-MP8FuBPN/BUILD/lustre-2.9.0/lnet/klnds/socklnd/socklnd_cb.c: In function 'ksocknal_check_peer_timeouts':
      /tmp/rpmbuild-lustre-jlan-MP8FuBPN/BUILD/lustre-2.9.0/lnet/klnds/socklnd/socklnd_cb.c:2492:3: error: implicit declaration of function 'libcfs_sock_wmem_queued' [-Werror=implicit-function-declaration]
      CNETERR("Total %d stale ZC_REQs for peer %s detected; the "
      ^
      cc1: all warnings being treated as errors
      /usr/src/linux-4.4.21-84.1.20161207nasa/scripts/Makefile.build:259: recipe for target '/tmp/rpmbuild-lustre-jlan-MP8FuBPN/BUILD/lustre-2.9.0/lnet/klnds/socklnd/socklnd_cb.o' failed

      Where is libcfs_sock_wmem_queued defined in b2_9? How do I get it compiled?
      Need help!

      Attachments

        Activity

          People

            wc-triage WC Triage
            jaylan Jay Lan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: