summaryrefslogtreecommitdiffstats
path: root/fs/nfs/pnfs_nfs.c
diff options
context:
space:
mode:
authorTrond Myklebust <trond.myklebust@primarydata.com>2017-05-01 17:35:58 -0400
committerTrond Myklebust <trond.myklebust@primarydata.com>2017-05-02 12:35:34 -0400
commit5f0114832a6eca70ee7563ba99b8e32da68f944b (patch)
treef1609b1f51325430ebd0246ccc35caa8199aae19 /fs/nfs/pnfs_nfs.c
parent61f454e30c18a28924e96be12592c0d5e24bcc81 (diff)
downloadlinux-5f0114832a6eca70ee7563ba99b8e32da68f944b.tar.gz
linux-5f0114832a6eca70ee7563ba99b8e32da68f944b.tar.bz2
linux-5f0114832a6eca70ee7563ba99b8e32da68f944b.zip
pNFS: Fix a typo in pnfs_generic_alloc_ds_commits
If the layout segment is invalid, we want to just resend the remaining writes. Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'fs/nfs/pnfs_nfs.c')
-rw-r--r--fs/nfs/pnfs_nfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/pnfs_nfs.c b/fs/nfs/pnfs_nfs.c
index 7697ac0ff81a..ae600ab1a646 100644
--- a/fs/nfs/pnfs_nfs.c
+++ b/fs/nfs/pnfs_nfs.c
@@ -223,7 +223,7 @@ pnfs_generic_alloc_ds_commits(struct nfs_commit_info *cinfo,
*/
if (!pnfs_is_valid_lseg(bucket->clseg) &&
!test_bit(NFS_LSEG_LAYOUTRETURN, &bucket->clseg->pls_flags))
- continue;
+ break;
data = nfs_commitdata_alloc(false);
if (!data)
break;