Whamcloud - gitweb
LU-15004 osd: remove wrong assertion on oo_dn
[fs/lustre-release.git] / lustre / llite / glimpse.c
index 4f98d6d..bd5e6b6 100644 (file)
@@ -27,7 +27,6 @@
  */
 /*
  * This file is part of Lustre, http://www.lustre.org/
- * Lustre is a trademark of Sun Microsystems, Inc.
  *
  * glimpse code used by vvp (and other Lustre clients in the future).
  *
@@ -211,7 +210,12 @@ int cl_glimpse_size0(struct inode *inode, int agl)
                } else if (result == 0) {
                        result = cl_glimpse_lock(env, io, inode, io->ci_obj,
                                                 agl);
-                       if (!agl && result == -EAGAIN)
+                       /**
+                        * need to limit retries for FLR mirrors if fast read
+                        * is short because of concurrent truncate.
+                        */
+                       if (!agl && result == -EAGAIN &&
+                           !io->ci_tried_all_mirrors)
                                io->ci_need_restart = 1;
                }