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 7697ac0ff81ac3e4917f241dc89a1087dc1a88e9..ae600ab1a646c3c145cfb811ab1362abe6ca3c72 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;