|
@@ -7577,11 +7577,16 @@ static void nfs4_layoutget_done(struct rpc_task *task, void *calldata)
|
|
} else {
|
|
} else {
|
|
LIST_HEAD(head);
|
|
LIST_HEAD(head);
|
|
|
|
|
|
|
|
+ /*
|
|
|
|
+ * Mark the bad layout state as invalid, then retry
|
|
|
|
+ * with the current stateid.
|
|
|
|
+ */
|
|
pnfs_mark_matching_lsegs_invalid(lo, &head, NULL);
|
|
pnfs_mark_matching_lsegs_invalid(lo, &head, NULL);
|
|
spin_unlock(&inode->i_lock);
|
|
spin_unlock(&inode->i_lock);
|
|
- /* Mark the bad layout state as invalid, then
|
|
|
|
- * retry using the open stateid. */
|
|
|
|
pnfs_free_lseg_list(&head);
|
|
pnfs_free_lseg_list(&head);
|
|
|
|
+
|
|
|
|
+ task->tk_status = 0;
|
|
|
|
+ rpc_restart_call_prepare(task);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (nfs4_async_handle_error(task, server, state) == -EAGAIN)
|
|
if (nfs4_async_handle_error(task, server, state) == -EAGAIN)
|