diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2014-11-09 02:15:09 +0100 |
---|---|---|
committer | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2014-11-25 22:22:15 +0100 |
commit | edef1297f33a4546559d905457b435a5ea160bab (patch) | |
tree | c14a3b6d62e72cb8b46a3a8cc09679b343831b49 /block/deadline-iosched.c | |
parent | Linux 3.18-rc6 (diff) | |
download | linux-edef1297f33a4546559d905457b435a5ea160bab.tar.xz linux-edef1297f33a4546559d905457b435a5ea160bab.zip |
SUNRPC: serialize iostats updates
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: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'block/deadline-iosched.c')
0 files changed, 0 insertions, 0 deletions