1. 01 4月, 2020 1 次提交
  2. 28 3月, 2020 1 次提交
  3. 26 3月, 2020 1 次提交
  4. 16 3月, 2020 1 次提交
  5. 15 1月, 2020 7 次提交
  6. 02 10月, 2019 1 次提交
    • Z
      nfs: Fix nfsi->nrequests count error on nfs_inode_remove_request · 33ea5aaa
      ZhangXiaoxu 提交于
      When xfstests testing, there are some WARNING as below:
      
      WARNING: CPU: 0 PID: 6235 at fs/nfs/inode.c:122 nfs_clear_inode+0x9c/0xd8
      Modules linked in:
      CPU: 0 PID: 6235 Comm: umount.nfs
      Hardware name: linux,dummy-virt (DT)
      pstate: 60000005 (nZCv daif -PAN -UAO)
      pc : nfs_clear_inode+0x9c/0xd8
      lr : nfs_evict_inode+0x60/0x78
      sp : fffffc000f68fc00
      x29: fffffc000f68fc00 x28: fffffe00c53155c0
      x27: fffffe00c5315000 x26: fffffc0009a63748
      x25: fffffc000f68fd18 x24: fffffc000bfaaf40
      x23: fffffc000936d3c0 x22: fffffe00c4ff5e20
      x21: fffffc000bfaaf40 x20: fffffe00c4ff5d10
      x19: fffffc000c056000 x18: 000000000000003c
      x17: 0000000000000000 x16: 0000000000000000
      x15: 0000000000000040 x14: 0000000000000228
      x13: fffffc000c3a2000 x12: 0000000000000045
      x11: 0000000000000000 x10: 0000000000000000
      x9 : 0000000000000000 x8 : 0000000000000000
      x7 : 0000000000000000 x6 : fffffc00084b027c
      x5 : fffffc0009a64000 x4 : fffffe00c0e77400
      x3 : fffffc000c0563a8 x2 : fffffffffffffffb
      x1 : 000000000000764e x0 : 0000000000000001
      Call trace:
       nfs_clear_inode+0x9c/0xd8
       nfs_evict_inode+0x60/0x78
       evict+0x108/0x380
       dispose_list+0x70/0xa0
       evict_inodes+0x194/0x210
       generic_shutdown_super+0xb0/0x220
       nfs_kill_super+0x40/0x88
       deactivate_locked_super+0xb4/0x120
       deactivate_super+0x144/0x160
       cleanup_mnt+0x98/0x148
       __cleanup_mnt+0x38/0x50
       task_work_run+0x114/0x160
       do_notify_resume+0x2f8/0x308
       work_pending+0x8/0x14
      
      The nrequest should be increased/decreased only if PG_INODE_REF flag
      was setted.
      
      But in the nfs_inode_remove_request function, it maybe decrease when
      no PG_INODE_REF flag, this maybe lead nrequests count error.
      Reported-by: NHulk Robot <hulkci@huawei.com>
      Signed-off-by: NZhangXiaoxu <zhangxiaoxu5@huawei.com>
      Signed-off-by: NAnna Schumaker <Anna.Schumaker@Netapp.com>
      33ea5aaa
  7. 27 8月, 2019 3 次提交
  8. 19 8月, 2019 1 次提交
  9. 07 7月, 2019 1 次提交
  10. 21 5月, 2019 1 次提交
  11. 26 4月, 2019 6 次提交
  12. 21 2月, 2019 3 次提交
  13. 13 2月, 2019 1 次提交
  14. 30 1月, 2019 1 次提交
  15. 29 12月, 2018 1 次提交
  16. 20 12月, 2018 2 次提交
    • N
      NFS/NFSD/SUNRPC: replace generic creds with 'struct cred'. · a52458b4
      NeilBrown 提交于
      SUNRPC has two sorts of credentials, both of which appear as
      "struct rpc_cred".
      There are "generic credentials" which are supplied by clients
      such as NFS and passed in 'struct rpc_message' to indicate
      which user should be used to authorize the request, and there
      are low-level credentials such as AUTH_NULL, AUTH_UNIX, AUTH_GSS
      which describe the credential to be sent over the wires.
      
      This patch replaces all the generic credentials by 'struct cred'
      pointers - the credential structure used throughout Linux.
      
      For machine credentials, there is a special 'struct cred *' pointer
      which is statically allocated and recognized where needed as
      having a special meaning.  A look-up of a low-level cred will
      map this to a machine credential.
      Signed-off-by: NNeilBrown <neilb@suse.com>
      Acked-by: NJ. Bruce Fields <bfields@redhat.com>
      Signed-off-by: NAnna Schumaker <Anna.Schumaker@Netapp.com>
      a52458b4
    • N
      NFS: move credential expiry tracking out of SUNRPC into NFS. · ddf529ee
      NeilBrown 提交于
      NFS needs to know when a credential is about to expire so that
      it can modify write-back behaviour to finish the write inside the
      expiry time.
      It currently uses functions in SUNRPC code which make use of a
      fairly complex callback scheme and flags in the generic credientials.
      
      As I am working to discard the generic credentials, this has to change.
      
      This patch moves the logic into NFS, in part by finding and caching
      the low-level credential in the open_context.  We then make direct
      cred-api calls on that.
      
      This makes the code much simpler and removes a dependency on generic
      rpc credentials.
      Signed-off-by: NNeilBrown <neilb@suse.com>
      Signed-off-by: NAnna Schumaker <Anna.Schumaker@Netapp.com>
      ddf529ee
  17. 27 7月, 2018 1 次提交
  18. 01 6月, 2018 2 次提交
  19. 11 4月, 2018 2 次提交
  20. 20 3月, 2018 1 次提交
  21. 09 3月, 2018 1 次提交
    • T
      NFS: Fix unstable write completion · c4f24df9
      Trond Myklebust 提交于
      We do want to respect the FLUSH_SYNC argument to nfs_commit_inode() to
      ensure that all outstanding COMMIT requests to the inode in question are
      complete. Currently we may exit early from both nfs_commit_inode() and
      nfs_write_inode() even if there are COMMIT requests in flight, or unstable
      writes on the commit list.
      
      In order to get the right semantics w.r.t. sync_inode(), we don't need
      to have nfs_commit_inode() reset the inode dirty flags when called from
      nfs_wb_page() and/or nfs_wb_all(). We just need to ensure that
      nfs_write_inode() leaves them in the right state if there are outstanding
      commits, or stable pages.
      Reported-by: NScott Mayhew <smayhew@redhat.com>
      Fixes: dc4fd9ab ("nfs: don't wait on commit in nfs_commit_inode()...")
      Cc: stable@vger.kernel.org # v4.14+
      Signed-off-by: NTrond Myklebust <trond.myklebust@primarydata.com>
      c4f24df9
  22. 29 1月, 2018 1 次提交