NFS: Fix an infinite loop when layoutget fail with BAD_STATEID
[deliverable/linux.git] / fs / nfs / nfs4proc.c
index 693b903b48bdfb78808274e90f53971eb1f21244..10ba6c1968e2110eba30488f7dc75230cf481ba8 100644 (file)
@@ -7820,6 +7820,7 @@ static void nfs4_layoutget_done(struct rpc_task *task, void *calldata)
                         * Mark the bad layout state as invalid, then retry
                         * with the current stateid.
                         */
+                       set_bit(NFS_LAYOUT_INVALID_STID, &lo->plh_flags);
                        pnfs_mark_matching_lsegs_invalid(lo, &head, NULL);
                        spin_unlock(&inode->i_lock);
                        pnfs_free_lseg_list(&head);
This page took 0.02488 seconds and 5 git commands to generate.