1. 26 2月, 2021 1 次提交
    • S
      cifs: Add new mount parameter "acdirmax" to allow caching directory metadata · 4c9f9481
      Steve French 提交于
      nfs and cifs on Linux currently have a mount parameter "actimeo" to control
      metadata (attribute) caching but cifs does not have additional mount
      parameters to allow distinguishing between caching directory metadata
      (e.g. needed to revalidate paths) and that for files.
      
      Add new mount parameter "acdirmax" to allow caching metadata for
      directories more loosely than file data.  NFS adjusts metadata
      caching from acdirmin to acdirmax (and another two mount parms
      for files) but to reduce complexity, it is safer to just introduce
      the one mount parm to allow caching directories longer. The
      defaults for acdirmax and actimeo (for cifs.ko) are conservative,
      1 second (NFS defaults acdirmax to 60 seconds). For many workloads,
      setting acdirmax to a higher value is safe and will improve
      performance.  This patch leaves unchanged the default values
      for caching metadata for files and directories but gives the
      user more flexibility in adjusting them safely for their workload
      via the new mount parm.
      Signed-off-by: NSteve French <stfrench@microsoft.com>
      Reviewed-by: NRonnie Sahlberg <lsahlber@redhat.com>
      Reviewed-By: NTom Talpey <tom@talpey.com>
      4c9f9481
  2. 25 2月, 2021 1 次提交
  3. 23 2月, 2021 8 次提交
  4. 20 2月, 2021 1 次提交
  5. 17 2月, 2021 6 次提交
    • S
      cifs: Reformat DebugData and index connections by conn_id. · 03e9bb1a
      Shyam Prasad N 提交于
      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: NShyam Prasad N <sprasad@microsoft.com>
      Reviewed-by: NPavel Shilovsky <pshilov@microsoft.com>
      Reviewed-by: NAurelien Aptel <aaptel@suse.com>
      Signed-off-by: NSteve French <stfrench@microsoft.com>
      03e9bb1a
    • S
      cifs: Identify a connection by a conn_id. · 6d82c27a
      Shyam Prasad N 提交于
      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: NShyam Prasad N <sprasad@microsoft.com>
      Reviewed-by: NPavel Shilovsky <pshilov@microsoft.com>
      Signed-off-by: NSteve French <stfrench@microsoft.com>
      6d82c27a
    • S
      cifs: Fix in error types returned for out-of-credit situations. · 7de03948
      Shyam Prasad N 提交于
      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: NShyam Prasad N <sprasad@microsoft.com>
      Reviewed-by: NPavel Shilovsky <pshilov@microsoft.com>
      Signed-off-by: NSteve French <stfrench@microsoft.com>
      7de03948
    • S
      cifs: New optype for session operations. · 0f56db83
      Shyam Prasad N 提交于
      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: NShyam Prasad N <sprasad@microsoft.com>
      Reviewed-by: NPavel Shilovsky <pshilov@microsoft.com>
      Signed-off-by: NSteve French <stfrench@microsoft.com>
      0f56db83
    • S
      cifs: documentation cleanup · 731ddc09
      Steve French 提交于
      Various minor changes to the admin-guide for cifs
      Signed-off-by: NSteve French <stfrench@microsoft.com>
      731ddc09
    • S
      cifs: fix trivial typo · 201023c5
      Steve French 提交于
      Typo: exiting --> existing
      Signed-off-by: NSteve French <stfrench@microsoft.com>
      201023c5
  6. 16 2月, 2021 1 次提交
  7. 15 2月, 2021 7 次提交
  8. 14 2月, 2021 12 次提交
  9. 13 2月, 2021 3 次提交
    • L
      Merge tag '5.11-rc7-smb3-github' of git://github.com/smfrench/smb3-kernel · 7989807d
      Linus Torvalds 提交于
      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
    • L
      Merge tag 'io_uring-5.11-2021-02-12' of git://git.kernel.dk/linux-block · c6d8570e
      Linus Torvalds 提交于
      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
    • L
      Merge tag 'drm-fixes-2021-02-12' of git://anongit.freedesktop.org/drm/drm · a81bfdf8
      Linus Torvalds 提交于
      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
新手
引导
客服 返回
顶部