1. 06 2月, 2020 2 次提交
  2. 05 2月, 2020 1 次提交
  3. 31 1月, 2020 1 次提交
    • R
      cifs: fix soft mounts hanging in the reconnect code · c54849dd
      Ronnie Sahlberg 提交于
      RHBZ: 1795429
      
      In recent DFS updates we have a new variable controlling how many times we will
      retry to reconnect the share.
      If DFS is not used, then this variable is initialized to 0 in:
      
      static inline int
      dfs_cache_get_nr_tgts(const struct dfs_cache_tgt_list *tl)
      {
              return tl ? tl->tl_numtgts : 0;
      }
      
      This means that in the reconnect loop in smb2_reconnect() we will immediately wrap retries to -1
      and never actually get to pass this conditional:
      
                      if (--retries)
                              continue;
      
      The effect is that we no longer reach the point where we fail the commands with -EHOSTDOWN
      and basically the kernel threads are virtually hung and unkillable.
      
      Fixes: a3a53b76 (cifs: Add support for failover in smb2_reconnect())
      Signed-off-by: NRonnie Sahlberg <lsahlber@redhat.com>
      Signed-off-by: NSteve French <stfrench@microsoft.com>
      Reviewed-by: NPaulo Alcantara (SUSE) <pc@cjr.nz>
      CC: Stable <stable@vger.kernel.org>
      c54849dd
  4. 27 1月, 2020 4 次提交
  5. 13 12月, 2019 1 次提交
  6. 10 12月, 2019 1 次提交
  7. 08 12月, 2019 1 次提交
  8. 07 12月, 2019 1 次提交
  9. 04 12月, 2019 1 次提交
    • S
      smb3: query attributes on file close · 43f8a6a7
      Steve French 提交于
      Since timestamps on files on most servers can be updated at
      close, and since timestamps on our dentries default to one
      second we can have stale timestamps in some common cases
      (e.g. open, write, close, stat, wait one second, stat - will
      show different mtime for the first and second stat).
      
      The SMB2/SMB3 protocol allows querying timestamps at close
      so add the code to request timestamp and attr information
      (which is cheap for the server to provide) to be returned
      when a file is closed (it is not needed for the many
      paths that call SMB2_close that are from compounded
      query infos and close nor is it needed for some of
      the cases where a directory close immediately follows a
      directory open.
      Signed-off-by: NSteve French <stfrench@microsoft.com>
      Acked-by: NRonnie Sahlberg <lsahlber@redhat.com>
      Reviewed-by: NAurelien Aptel <aaptel@suse.com>
      Reviewed-by: NPavel Shilovsky <pshilov@microsoft.com>
      43f8a6a7
  10. 03 12月, 2019 2 次提交
  11. 25 11月, 2019 5 次提交
  12. 09 10月, 2019 1 次提交
  13. 07 10月, 2019 1 次提交
  14. 26 9月, 2019 1 次提交
  15. 24 9月, 2019 2 次提交
  16. 17 9月, 2019 11 次提交
  17. 06 8月, 2019 2 次提交
  18. 19 7月, 2019 1 次提交
  19. 08 7月, 2019 1 次提交
    • S
      SMB3: query inode number on open via create context · ff2a09e9
      Steve French 提交于
      We can cut the number of roundtrips on open (may also
      help some rename cases as well) by returning the inode
      number in the SMB2 open request itself instead of
      querying it afterwards via a query FILE_INTERNAL_INFO.
      This should significantly improve the performance of
      posix open.
      
      Add SMB2_CREATE_QUERY_ON_DISK_ID create context request
      on open calls so that when server supports this we
      can save a roundtrip for QUERY_INFO on every open.
      
      Follow on patch will add the response processing for
      SMB2_CREATE_QUERY_ON_DISK_ID context and optimize
      smb2_open_file to avoid the extra network roundtrip
      on every posix open. This patch adds the context on
      SMB2/SMB3 open requests.
      Signed-off-by: NSteve French <stfrench@microsoft.com>
      ff2a09e9