Skip to content

Commit e3e3775

Browse files
kofemannAnna Schumaker
authored andcommitted
flexfiles/pNFS: update stats on NFS4ERR_DELAY for v4.1 DSes
On NFS4ERR_DELAY nfs slient updates its stats, but misses for flexfiles v4.1 DSes. Signed-off-by: Tigran Mkrtchyan <[email protected]> Signed-off-by: Anna Schumaker <[email protected]>
1 parent c25a897 commit e3e3775

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

fs/nfs/flexfilelayout/flexfilelayout.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1129,6 +1129,8 @@ static int ff_layout_async_handle_error_v4(struct rpc_task *task,
11291129
nfs4_schedule_session_recovery(clp->cl_session, task->tk_status);
11301130
break;
11311131
case -NFS4ERR_DELAY:
1132+
nfs_inc_stats(lseg->pls_layout->plh_inode, NFSIOS_DELAY);
1133+
fallthrough;
11321134
case -NFS4ERR_GRACE:
11331135
rpc_delay(task, FF_LAYOUT_POLL_RETRY_MAX);
11341136
break;

0 commit comments

Comments
 (0)