1. 20 Sep, 2024 34 commits
  2. 01 Sep, 2024 6 commits
    • NeilBrown's avatar
      nfsd: move nfsd_pool_stats_open into nfsctl.c · c9f10f81
      NeilBrown authored
      nfsd_pool_stats_open() is used in nfsctl.c, so move it there.
      Signed-off-by: default avatarNeilBrown <neilb@suse.de>
      Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>
      c9f10f81
    • NeilBrown's avatar
      SUNRPC: make various functions static, or not exported. · f2b27e1d
      NeilBrown authored
      Various functions are only used within the sunrpc module, and several
      are only use in the one file.  So clean up:
      
      These are marked static, and any EXPORT is removed.
        svc_rcpb_setup()
        svc_rqst_alloc()
        svc_rqst_free()  - also moved before first use
        svc_rpcbind_set_version()
        svc_drop() - also moved to svc.c
      
      These are now not EXPORTed, but are not static.
        svc_authenticate()
        svc_sock_update_bufs()
      Signed-off-by: default avatarNeilBrown <neilb@suse.de>
      Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>
      f2b27e1d
    • NeilBrown's avatar
      lockd: discard nlmsvc_timeout · 4ed9ef32
      NeilBrown authored
      nlmsvc_timeout always has the same value as (nlm_timeout * HZ), so use
      that in the one place that nlmsvc_timeout is used.
      
      In truth it *might* not always be the same as nlmsvc_timeout is only set
      when lockd is started while nlm_timeout can be set at anytime via
      sysctl.  I think this difference it not helpful so removing it is good.
      
      Also remove the test for nlm_timout being 0.  This is not possible -
      unless a module parameter is used to set the minimum timeout to 0, and
      if that happens then it probably should be honoured.
      Signed-off-by: default avatarNeilBrown <neilb@suse.de>
      Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>
      4ed9ef32
    • NeilBrown's avatar
      nfsd: don't EXPORT_SYMBOL nfsd4_ssc_init_umount_work() · 8203ab8a
      NeilBrown authored
      nfsd4_ssc_init_umount_work() is only used in the nfsd module, so there
      is no need to EXPORT it.
      Signed-off-by: default avatarNeilBrown <neilb@suse.de>
      Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>
      8203ab8a
    • Chen Hanxiao's avatar
      NFS: trace: show TIMEDOUT instead of 0x6e · cef48236
      Chen Hanxiao authored
      __nfs_revalidate_inode may return ETIMEDOUT.
      
      print symbol of ETIMEDOUT in nfs trace:
      
      before:
      cat-5191 [005] 119.331127: nfs_revalidate_inode_exit: error=-110 (0x6e)
      
      after:
      cat-1738 [004] 44.365509: nfs_revalidate_inode_exit: error=-110 (TIMEDOUT)
      Signed-off-by: default avatarChen Hanxiao <chenhx.fnst@fujitsu.com>
      Reviewed-by: default avatarJeff Layton <jlayton@kernel.org>
      Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>
      cef48236
    • Youzhong Yang's avatar
      nfsd: use system_unbound_wq for nfsd_file_gc_worker() · 4b84551a
      Youzhong Yang authored
      After many rounds of changes in filecache.c, the fix by commit
      ce7df055(NFSD: Make the file_delayed_close workqueue UNBOUND)
      is gone, now we are getting syslog messages like these:
      
      [ 1618.186688] workqueue: nfsd_file_gc_worker [nfsd] hogged CPU for >13333us 4 times, consider switching to WQ_UNBOUND
      [ 1638.661616] workqueue: nfsd_file_gc_worker [nfsd] hogged CPU for >13333us 8 times, consider switching to WQ_UNBOUND
      [ 1665.284542] workqueue: nfsd_file_gc_worker [nfsd] hogged CPU for >13333us 16 times, consider switching to WQ_UNBOUND
      [ 1759.491342] workqueue: nfsd_file_gc_worker [nfsd] hogged CPU for >13333us 32 times, consider switching to WQ_UNBOUND
      [ 3013.012308] workqueue: nfsd_file_gc_worker [nfsd] hogged CPU for >13333us 64 times, consider switching to WQ_UNBOUND
      [ 3154.172827] workqueue: nfsd_file_gc_worker [nfsd] hogged CPU for >13333us 128 times, consider switching to WQ_UNBOUND
      [ 3422.461924] workqueue: nfsd_file_gc_worker [nfsd] hogged CPU for >13333us 256 times, consider switching to WQ_UNBOUND
      [ 3963.152054] workqueue: nfsd_file_gc_worker [nfsd] hogged CPU for >13333us 512 times, consider switching to WQ_UNBOUND
      
      Consider use system_unbound_wq instead of system_wq for
      nfsd_file_gc_worker().
      Signed-off-by: default avatarYouzhong Yang <youzhong@gmail.com>
      Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>
      4b84551a