Whamcloud - gitweb
don't fail import after eviction
authorshadow <shadow>
Thu, 19 Nov 2009 14:18:49 +0000 (14:18 +0000)
committershadow <shadow>
Thu, 19 Nov 2009 14:18:49 +0000 (14:18 +0000)
Branch HEAD
b=20765
i=tappro
i=zam

lustre/osc/osc_create.c
lustre/tests/test-framework.sh

index 17fcbd8..99d76f9 100644 (file)
@@ -144,10 +144,14 @@ static int osc_interpret_create(const struct lu_env *env,
                 spin_unlock(&oscc->oscc_lock);
                 break;
         }
+        case -EINTR:
         case -EWOULDBLOCK: {
                 /* aka EAGAIN we should not delay create if import failed -
                  * this avoid client stick in create and avoid race with
                  * delorphan */
+                /* EINTR say - old create request is killed due mds<>ost
+                 * eviction - OSCC_FLAG_RECOVERING can already set due
+                 * IMP_DISCONN event */
                 oscc->oscc_flags |= OSCC_FLAG_RECOVERING;
                 /* oscc->oscc_grow_count = OST_MIN_PRECREATE; */
                 spin_unlock(&oscc->oscc_lock);
index d10de99..07ab9ca 100644 (file)
@@ -1853,6 +1853,8 @@ init_param_vars () {
             $LFS quotaoff -ug $MOUNT > /dev/null 2>&1
         fi
     fi
+
+    return 0
 }
 
 nfs_client_mode () {