pNFS: Fix a typo in pnfs_generic_alloc_ds_commits
authorTrond Myklebust <trond.myklebust@primarydata.com>
Mon, 1 May 2017 21:35:58 +0000 (17:35 -0400)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Tue, 2 May 2017 16:35:34 +0000 (12:35 -0400)
If the layout segment is invalid, we want to just resend the remaining
writes.

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/pnfs_nfs.c

index 7697ac0..ae600ab 100644 (file)
@@ -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;