1. 08 5月, 2021 1 次提交
  2. 07 3月, 2021 1 次提交
  3. 23 2月, 2021 1 次提交
  4. 14 12月, 2020 4 次提交
  5. 24 8月, 2020 1 次提交
  6. 03 8月, 2020 2 次提交
  7. 05 6月, 2020 2 次提交
  8. 02 6月, 2020 1 次提交
  9. 01 6月, 2020 1 次提交
    • J
      cifs: Standardize logging output · a0a3036b
      Joe Perches 提交于
      Use pr_fmt to standardize all logging for fs/cifs.
      
      Some logging output had no CIFS: specific prefix.
      
      Now all output has one of three prefixes:
      
      o CIFS:
      o CIFS: VFS:
      o Root-CIFS:
      
      Miscellanea:
      
      o Convert printks to pr_<level>
      o Neaten macro definitions
      o Remove embedded CIFS: prefixes from formats
      o Convert "illegal" to "invalid"
      o Coalesce formats
      o Add missing '\n' format terminations
      o Consolidate multiple cifs_dbg continuations into single calls
      o More consistent use of upper case first word output logging
      o Multiline statement argument alignment and wrapping
      Signed-off-by: NJoe Perches <joe@perches.com>
      Signed-off-by: NSteve French <stfrench@microsoft.com>
      a0a3036b
  10. 06 2月, 2020 1 次提交
  11. 05 12月, 2019 2 次提交
  12. 25 11月, 2019 3 次提交
    • A
      cifs: try harder to open new channels · 65a37a34
      Aurelien Aptel 提交于
      Previously we would only loop over the iface list once.
      This patch tries to loop over multiple times until all channels are
      opened. It will also try to reuse RSS ifaces.
      Signed-off-by: NAurelien Aptel <aaptel@suse.com>
      Signed-off-by: NSteve French <stfrench@microsoft.com>
      65a37a34
    • A
      cifs: try opening channels after mounting · d70e9fa5
      Aurelien Aptel 提交于
      After doing mount() successfully we call cifs_try_adding_channels()
      which will open as many channels as it can.
      
      Channels are closed when the master session is closed.
      
      The master connection becomes the first channel.
      
      ,-------------> global cifs_tcp_ses_list <-------------------------.
      |                                                                  |
      '- TCP_Server_Info  <-->  TCP_Server_Info  <-->  TCP_Server_Info <-'
            (master con)           (chan#1 con)         (chan#2 con)
            |      ^                    ^                    ^
            v      '--------------------|--------------------'
         cifs_ses                       |
         - chan_count = 3               |
         - chans[] ---------------------'
         - smb3signingkey[]
            (master signing key)
      
      Note how channel connections don't have sessions. That's because
      cifs_ses can only be part of one linked list (list_head are internal
      to the elements).
      
      For signing keys, each channel has its own signing key which must be
      used only after the channel has been bound. While it's binding it must
      use the master session signing key.
      
      For encryption keys, since channel connections do not have sessions
      attached we must now find matching session by looping over all sessions
      in smb2_get_enc_key().
      
      Each channel is opened like a regular server connection but at the
      session setup request step it must set the
      SMB2_SESSION_REQ_FLAG_BINDING flag and use the session id to bind to.
      
      Finally, while sending in compound_send_recv() for requests that
      aren't negprot, ses-setup or binding related, use a channel by cycling
      through the available ones (round-robin).
      Signed-off-by: NAurelien Aptel <aaptel@suse.com>
      Signed-off-by: NSteve French <stfrench@microsoft.com>
      d70e9fa5
    • A
      cifs: switch servers depending on binding state · f6a6bf7c
      Aurelien Aptel 提交于
      Currently a lot of the code to initialize a connection & session uses
      the cifs_ses as input. But depending on if we are opening a new session
      or a new channel we need to use different server pointers.
      
      Add a "binding" flag in cifs_ses and a helper function that returns
      the server ptr a session should use (only in the sess establishment
      code path).
      Signed-off-by: NAurelien Aptel <aaptel@suse.com>
      Signed-off-by: NSteve French <stfrench@microsoft.com>
      f6a6bf7c
  13. 24 9月, 2019 1 次提交
  14. 28 8月, 2019 1 次提交
  15. 24 12月, 2018 2 次提交
  16. 24 8月, 2018 1 次提交
  17. 03 3月, 2017 1 次提交
  18. 02 2月, 2017 2 次提交
  19. 24 6月, 2016 3 次提交
  20. 18 5月, 2016 4 次提交
  21. 21 10月, 2015 1 次提交
    • D
      KEYS: Merge the type-specific data with the payload data · 146aa8b1
      David Howells 提交于
      Merge the type-specific data with the payload data into one four-word chunk
      as it seems pointless to keep them separate.
      
      Use user_key_payload() for accessing the payloads of overloaded
      user-defined keys.
      Signed-off-by: NDavid Howells <dhowells@redhat.com>
      cc: linux-cifs@vger.kernel.org
      cc: ecryptfs@vger.kernel.org
      cc: linux-ext4@vger.kernel.org
      cc: linux-f2fs-devel@lists.sourceforge.net
      cc: linux-nfs@vger.kernel.org
      cc: ceph-devel@vger.kernel.org
      cc: linux-ima-devel@lists.sourceforge.net
      146aa8b1
  22. 11 12月, 2014 1 次提交
  23. 08 12月, 2014 1 次提交
  24. 16 9月, 2014 1 次提交
    • A
      cifs: remove dead code · 116ae5e2
      Arnd Bergmann 提交于
      cifs provides two dummy functions 'sess_auth_lanman' and
      'sess_auth_kerberos' for the case in which the respective
      features are not defined. However, the caller is also under
      an #ifdef, so we just get warnings about unused code:
      
      fs/cifs/sess.c:1109:1: warning: 'sess_auth_kerberos' defined but not used [-Wunused-function]
       sess_auth_kerberos(struct sess_data *sess_data)
      
      Removing the dead functions gets rid of the warnings without
      any downsides that I can see.
      
      (Yalin Wang reported the identical problem and fix so added him)
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NYalin Wang <yalin.wang@sonymobile.com>
      Signed-off-by: NSteve French <smfrench@gmail.com>
      116ae5e2
  25. 22 8月, 2014 1 次提交