pNFS/flexfiles: Fix a statistics gathering imbalance
authorTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 17 Dec 2015 14:22:15 +0000 (09:22 -0500)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Mon, 28 Dec 2015 19:32:40 +0000 (14:32 -0500)
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>
fs/nfs/flexfilelayout/flexfilelayout.c

index 1da19d70945890a0c247360bd98b7386228a2726..14109a82ce84a7fb7a9f125cad27354ef14c4443 100644 (file)
@@ -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;
 }