diff options
author | Trond Myklebust <trond.myklebust@primarydata.com> | 2015-12-17 09:22:15 -0500 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2015-12-28 14:32:40 -0500 |
commit | 7eeea1679783e7c1c38074e8c562900b7e3d3dd7 (patch) | |
tree | 447984d309cfeb83ed9c2782781ddaa263346eb9 /fs/nfs | |
parent | b9fc773ef512dd3db71560463d0e5543c35fe976 (diff) | |
download | linux-7eeea1679783e7c1c38074e8c562900b7e3d3dd7.tar.gz linux-7eeea1679783e7c1c38074e8c562900b7e3d3dd7.tar.bz2 linux-7eeea1679783e7c1c38074e8c562900b7e3d3dd7.zip |
pNFS/flexfiles: Fix a statistics gathering imbalance
When we replay a failed read, write or commit to the dataserver, we
need to ensure that we call ff_layout_read_prepare_v3(),
ff_layout_write_prepare_v3 or ff_layout_commit_prepare_v3() so that we
reset the statistics.
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'fs/nfs')
-rw-r--r-- | fs/nfs/flexfilelayout/flexfilelayout.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/flexfilelayout/flexfilelayout.c b/fs/nfs/flexfilelayout/flexfilelayout.c index 1da19d709458..14109a82ce84 100644 --- a/fs/nfs/flexfilelayout/flexfilelayout.c +++ b/fs/nfs/flexfilelayout/flexfilelayout.c @@ -1130,7 +1130,7 @@ static int ff_layout_async_handle_error_v3(struct rpc_task *task, return -NFS4ERR_RESET_TO_PNFS; out_retry: task->tk_status = 0; - rpc_restart_call(task); + rpc_restart_call_prepare(task); rpc_delay(task, NFS_JUKEBOX_RETRY_TIME); return -EAGAIN; } |