1. 05 6月, 2015 1 次提交
  2. 03 6月, 2015 1 次提交
  3. 24 4月, 2015 1 次提交
    • J
      sunrpc: make debugfs file creation failure non-fatal · 3f940098
      Jeff Layton 提交于
      v2: gracefully handle the case where some dentry pointers end up NULL
          and be more dilligent about zeroing out dentry pointers
      
      We currently have a problem that SELinux policy is being enforced when
      creating debugfs files. If a debugfs file is created as a side effect of
      doing some syscall, then that creation can fail if the SELinux policy
      for that process prevents it.
      
      This seems wrong. We don't do that for files under /proc, for instance,
      so Bruce has proposed a patch to fix that.
      
      While discussing that patch however, Greg K.H. stated:
      
          "No kernel code should care / fail if a debugfs function fails, so
           please fix up the sunrpc code first."
      
      This patch converts all of the sunrpc debugfs setup code to be void
      return functins, and the callers to not look for errors from those
      functions.
      
      This should allow rpc_clnt and rpc_xprt creation to work, even if the
      kernel fails to create debugfs files for some reason.
      
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Acked-by: N"J. Bruce Fields" <bfields@fieldses.org>
      Signed-off-by: NJeff Layton <jeff.layton@primarydata.com>
      Signed-off-by: NTrond Myklebust <trond.myklebust@primarydata.com>
      3f940098
  4. 01 4月, 2015 1 次提交
    • J
      sunrpc: make debugfs file creation failure non-fatal · f9c72d10
      Jeff Layton 提交于
      We currently have a problem that SELinux policy is being enforced when
      creating debugfs files. If a debugfs file is created as a side effect of
      doing some syscall, then that creation can fail if the SELinux policy
      for that process prevents it.
      
      This seems wrong. We don't do that for files under /proc, for instance,
      so Bruce has proposed a patch to fix that.
      
      While discussing that patch however, Greg K.H. stated:
      
          "No kernel code should care / fail if a debugfs function fails, so
           please fix up the sunrpc code first."
      
      This patch converts all of the sunrpc debugfs setup code to be void
      return functins, and the callers to not look for errors from those
      functions.
      
      This should allow rpc_clnt and rpc_xprt creation to work, even if the
      kernel fails to create debugfs files for some reason.
      
      Symptoms were failing krb5 mounts on systems using gss-proxy and
      selinux.
      
      Fixes: 388f0c77 "sunrpc: add a debugfs rpc_xprt directory..."
      Cc: stable@vger.kernel.org
      Signed-off-by: NJeff Layton <jeff.layton@primarydata.com>
      Acked-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      Signed-off-by: NJ. Bruce Fields <bfields@redhat.com>
      f9c72d10
  5. 31 3月, 2015 1 次提交
  6. 12 2月, 2015 1 次提交
  7. 10 2月, 2015 1 次提交
  8. 09 2月, 2015 3 次提交
  9. 04 2月, 2015 3 次提交
  10. 30 1月, 2015 2 次提交
  11. 23 1月, 2015 1 次提交
  12. 16 1月, 2015 3 次提交
  13. 10 12月, 2014 10 次提交
  14. 02 12月, 2014 1 次提交
  15. 28 11月, 2014 2 次提交
  16. 26 11月, 2014 1 次提交
    • C
      SUNRPC: serialize iostats updates · edef1297
      Chuck Lever 提交于
      Occasionally mountstats reports a negative retransmission rate.
      Ensure that two RPCs completing concurrently don't confuse the sums
      in the transport's op_metrics array.
      
      Since pNFS filelayout can invoke rpc_count_iostats() on another
      transport from xprt_release(), we can't rely on simply holding the
      transport_lock in xprt_release(). There's nothing for it but hard
      serialization. One spin lock per RPC operation should make this as
      painless as it can be.
      Signed-off-by: NChuck Lever <chuck.lever@oracle.com>
      Signed-off-by: NAnna Schumaker <Anna.Schumaker@Netapp.com>
      edef1297
  17. 25 11月, 2014 3 次提交
  18. 25 9月, 2014 1 次提交
  19. 18 8月, 2014 1 次提交
  20. 04 8月, 2014 2 次提交