From 2586f1eefc957d6868b27b2ffa01d19f48fd2b96 Mon Sep 17 00:00:00 2001 From: shadow Date: Thu, 19 Nov 2009 14:18:49 +0000 Subject: [PATCH] don't fail import after eviction Branch HEAD b=20765 i=tappro i=zam --- lustre/osc/osc_create.c | 4 ++++ lustre/tests/test-framework.sh | 2 ++ 2 files changed, 6 insertions(+) diff --git a/lustre/osc/osc_create.c b/lustre/osc/osc_create.c index 17fcbd8..99d76f9 100644 --- a/lustre/osc/osc_create.c +++ b/lustre/osc/osc_create.c @@ -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); diff --git a/lustre/tests/test-framework.sh b/lustre/tests/test-framework.sh index d10de99..07ab9ca 100644 --- a/lustre/tests/test-framework.sh +++ b/lustre/tests/test-framework.sh @@ -1853,6 +1853,8 @@ init_param_vars () { $LFS quotaoff -ug $MOUNT > /dev/null 2>&1 fi fi + + return 0 } nfs_client_mode () { -- 1.8.3.1