1. 23 Feb, 2021 8 commits
  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 5 commits
    • Linus Torvalds's avatar
      Merge tag '5.11-rc7-smb3-github' of git://github.com/smfrench/smb3-kernel · 7989807d
      Linus Torvalds authored
      Pull cifs fixes from Steve French:
       "Four small smb3 fixes to the new mount API (including a particularly
        important one for DFS links).
      
        These were found in testing this week of additional DFS scenarios, and
        a user testing of an apache container problem"
      
      * tag '5.11-rc7-smb3-github' of git://github.com/smfrench/smb3-kernel:
        cifs: Set CIFS_MOUNT_USE_PREFIX_PATH flag on setting cifs_sb->prepath.
        cifs: In the new mount api we get the full devname as source=
        cifs: do not disable noperm if multiuser mount option is not provided
        cifs: fix dfs-links
      7989807d
    • Linus Torvalds's avatar
      Merge tag 'io_uring-5.11-2021-02-12' of git://git.kernel.dk/linux-block · c6d8570e
      Linus Torvalds authored
      Pull io_uring fix from Jens Axboe:
       "Revert of a patch from this release that caused a regression"
      
      * tag 'io_uring-5.11-2021-02-12' of git://git.kernel.dk/linux-block:
        Revert "io_uring: don't take fs for recvmsg/sendmsg"
      c6d8570e
    • Linus Torvalds's avatar
      Merge tag 'drm-fixes-2021-02-12' of git://anongit.freedesktop.org/drm/drm · a81bfdf8
      Linus Torvalds authored
      Pull drm fixes from Dave Airlie:
       "Regular fixes for final, there is a ttm regression fix, dp-mst fix,
        one amdgpu revert, two i915 fixes, and some misc fixes for sun4i,
        xlnx, and vc4.
      
        All pretty quiet and don't think we have any known outstanding
        regressions.
      
        ttm:
         - page pool regression fix.
      
        dp_mst:
         - don't report un-attached ports as connected
      
        amdgpu:
         - blank screen fix
      
        i915:
         - ensure Type-C FIA is powered when initializing
         - fix overlay frontbuffer tracking
      
        sun4i:
         - tcon1 sync polarity fix
         - always set HDMI clock rate
         - fix H6 HDMI PHY config
         - fix H6 max frequency
      
        vc4:
         - fix buffer overflow
      
        xlnx:
         - fix memory leak"
      
      * tag 'drm-fixes-2021-02-12' of git://anongit.freedesktop.org/drm/drm:
        drm/ttm: make sure pool pages are cleared
        drm/sun4i: dw-hdmi: Fix max. frequency for H6
        drm/sun4i: Fix H6 HDMI PHY configuration
        drm/sun4i: dw-hdmi: always set clock rate
        drm/sun4i: tcon: set sync polarity for tcon1 channel
        drm/i915: Fix overlay frontbuffer tracking
        Revert "drm/amd/display: Update NV1x SR latency values"
        drm/i915/tgl+: Make sure TypeC FIA is powered up when initializing it
        drm/dp_mst: Don't report ports connected if nothing is attached to them
        drm/xlnx: fix kmemleak by sending vblank_event in atomic_disable
        drm/vc4: hvs: Fix buffer overflow with the dlist handling
      a81bfdf8
    • Linus Torvalds's avatar
      Merge tag 'trace-v5.11-rc7-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace · e77a6817
      Linus Torvalds authored
      Pull tracing fix from Steven Rostedt:
       "Fix buffer overflow in trace event filter.
      
        It was reported that if an trace event was larger than a page and was
        filtered, that it caused memory corruption. The reason is that
        filtered events first go into a buffer to test the filter before being
        written into the ring buffer. Unfortunately, this write did not check
        the size"
      
      * tag 'trace-v5.11-rc7-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace:
        tracing: Check length before giving out the filter buffer
      e77a6817
    • Linus Torvalds's avatar
      Merge tag 'for-linus-5.11-rc8-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip · 2dbbaae5
      Linus Torvalds authored
      Pull xen fix from Juergen Gross:
       "A single fix for an issue introduced this development cycle: when
        running as a Xen guest on Arm systems the kernel will hang during
        boot"
      
      * tag 'for-linus-5.11-rc8-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip:
        arm/xen: Don't probe xenbus as part of an early initcall
      2dbbaae5