“bb1cbb2ba656964ad062f34eaf77c9c1dadbdb50”上不存在“git@gitcode.net:os/u-boot.mirror.git”
  • 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
metrics.h 3.3 KB