On Wed, Mar 15, 2017 at 4:42 PM, Olga Kornievskaia <kolga@xxxxxxxxxx> wrote: > Upon receiving an error on commit to the DS, the code doesn't fallback > to MDS and instead retried to the same DS again. > > Signed-off-by: Olga Kornievskaia <kolga@xxxxxxxxxx> > --- > fs/nfs/filelayout/filelayout.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/fs/nfs/filelayout/filelayout.c b/fs/nfs/filelayout/filelayout.c > index e1d9bea..948cb70 100644 > --- a/fs/nfs/filelayout/filelayout.c > +++ b/fs/nfs/filelayout/filelayout.c > @@ -382,6 +382,7 @@ static int filelayout_commit_done_cb(struct rpc_task *task, > switch (err) { > case -NFS4ERR_RESET_TO_MDS: > pnfs_generic_prepare_to_resend_writes(data); > + pnfs_set_lo_fail(data->lseg); > return -EAGAIN; > case -EAGAIN: > rpc_restart_call_prepare(task); > -- > 1.8.3.1 > Anna, Trond, Any comments? -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html