1. 23 Feb, 2021 1 commit
  2. 20 Feb, 2021 1 commit
  3. 16 Feb, 2021 6 commits
    • Shyam Prasad N's avatar
      cifs: Reformat DebugData and index connections by conn_id. · 03e9bb1a
      Shyam Prasad N authored
      Reformat the output of /proc/fs/cifs/DebugData to print the
      conn_id for each connection. Also reordered and numbered the data
      into a more reader-friendly format.
      
      This is what the new format looks like:
      $ cat /proc/fs/cifs/DebugData
      Display Internal CIFS Data Structures for Debugging
      ---------------------------------------------------
      CIFS Version 2.30
      Features: DFS,FSCACHE,STATS,DEBUG,ALLOW_INSECURE_LEGACY,WEAK_PW_HASH,CIFS_POSIX,UPCALL(SPNEGO),XATTR,ACL
      CIFSMaxBufSize: 16384
      Active VFS Requests: 0
      
      Servers:
      1) ConnectionId: 0x1
      Number of credits: 371 Dialect 0x300
      TCP status: 1 Instance: 1
      Local Users To Server: 1 SecMode: 0x1 Req On Wire: 0 In Send: 0 In MaxReq Wait: 0
      
              Sessions:
              1) Name: 10.10.10.10 Uses: 1 Capability: 0x300077     Session Status: 1
              Security type: RawNTLMSSP  SessionId: 0x785560000019
              User: 1000 Cred User: 0
      
              Shares:
              0) IPC: \\10.10.10.10\IPC$ Mounts: 1 DevInfo: 0x0 Attributes: 0x0
              PathComponentMax: 0 Status: 1 type: 0 Serial Number: 0x0
              Share Capabilities: None        Share Flags: 0x30
              tid: 0x1        Maximal Access: 0x11f01ff
      
              1) \\10.10.10.10\shyam_test2 Mounts: 1 DevInfo: 0x20020 Attributes: 0xc706ff
              PathComponentMax: 255 Status: 1 type: DISK Serial Number: 0xd4723975
              Share Capabilities: None Aligned, Partition Aligned,    Share Flags: 0x0
              tid: 0x5        Optimal sector size: 0x1000     Maximal Access: 0x1f01ff
      
              MIDs:
      
              Server interfaces: 3
              1)      Speed: 10000000000 bps
                      Capabilities: rss
                      IPv4: 10.10.10.1
      
              2)      Speed: 10000000000 bps
                      Capabilities: rss
                      IPv6: fe80:0000:0000:0000:18b4:0000:0000:0000
      
              3)      Speed: 1000000000 bps
                      Capabilities: rss
                      IPv4: 10.10.10.10
                      [CONNECTED]
      Signed-off-by: default avatarShyam Prasad N <sprasad@microsoft.com>
      Reviewed-by: default avatarPavel Shilovsky <pshilov@microsoft.com>
      Reviewed-by: default avatarAurelien Aptel <aaptel@suse.com>
      Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
      03e9bb1a
    • Shyam Prasad N's avatar
      cifs: Identify a connection by a conn_id. · 6d82c27a
      Shyam Prasad N authored
      Introduced a new field conn_id in TCP_Server_Info structure.
      This is a non-persistent unique identifier maintained by the client
      for a connection to a file server. For this, a global counter named
      tcpSesNextId is maintained. On allocating a new TCP_Server_Info,
      this counter is incremented and assigned.
      
      Changed the dynamic tracepoints related to reconnects and
      crediting to be more informative (with conn_id printed).
      Debugging a crediting issue helped me understand the
      important things to print here.
      
      Always call dynamic tracepoints outside the scope of spinlocks.
      To do this, copy out the credits and in_flight fields of the
      server struct before dropping the lock.
      Signed-off-by: default avatarShyam Prasad N <sprasad@microsoft.com>
      Reviewed-by: default avatarPavel Shilovsky <pshilov@microsoft.com>
      Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
      6d82c27a
    • Shyam Prasad N's avatar
      cifs: Fix in error types returned for out-of-credit situations. · 7de03948
      Shyam Prasad N authored
      For failure by timeout waiting for credits, changed the error
      returned to the app with EBUSY, instead of ENOTSUPP. This is done
      because this situation is possible even in non-buggy cases. i.e.
      overloaded server can return 0 credits until done with outstanding
      requests. And this feels like a better error to return to the app.
      
      For cases of zero credits found even when there are no requests
      in flight, replaced ENOTSUPP with EDEADLK, since we're avoiding
      deadlock here by returning error.
      Signed-off-by: default avatarShyam Prasad N <sprasad@microsoft.com>
      Reviewed-by: default avatarPavel Shilovsky <pshilov@microsoft.com>
      Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
      7de03948
    • Shyam Prasad N's avatar
      cifs: New optype for session operations. · 0f56db83
      Shyam Prasad N authored
      We used to share the CIFS_NEG_OP flag between negotiate and
      session authentication. There was an assumption in the code that
      CIFS_NEG_OP is used by negotiate only. So introcuded CIFS_SESS_OP
      and used it for session setup optypes.
      Signed-off-by: default avatarShyam Prasad N <sprasad@microsoft.com>
      Reviewed-by: default avatarPavel Shilovsky <pshilov@microsoft.com>
      Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
      0f56db83
    • Steve French's avatar
      cifs: documentation cleanup · 731ddc09
      Steve French authored
      Various minor changes to the admin-guide for cifs
      Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
      731ddc09
    • Steve French's avatar
      cifs: fix trivial typo · 201023c5
      Steve French authored
      Typo: exiting --> existing
      Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
      201023c5
  4. 15 Feb, 2021 1 commit
  5. 14 Feb, 2021 7 commits
  6. 13 Feb, 2021 12 commits
  7. 12 Feb, 2021 12 commits