From 6d3a81a1d4f00f31b1d7b5b4ee9719f379043984 Mon Sep 17 00:00:00 2001 From: Hongchao Zhang Date: Tue, 3 Dec 2013 22:32:06 +0800 Subject: [PATCH] LU-4313 osp: continue waiting for -ENOTCONN in osp_precreate_reserve, -ENOTCONN should also be treated as recoverable errors, such as -ENODEV, and continue waiting the object to be created by OSP once it completes recovery. This patch is back-ported from the following one: Lustre-commit: 3a2073d3bf9fab33fa26c5c5f0da2b0821185131 Lustre-change: http://review.whamcloud.com/8415 Signed-off-by: Hongchao Zhang Change-Id: I1fd13c8bec9b7827396ec922cb985ee642a5e286 Signed-off-by: Jian Yu Reviewed-on: http://review.whamcloud.com/8468 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Alex Zhuravlev Reviewed-by: Oleg Drokin --- lustre/osp/osp_precreate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/osp/osp_precreate.c b/lustre/osp/osp_precreate.c index ff6beb6..ee0fd5ba 100644 --- a/lustre/osp/osp_precreate.c +++ b/lustre/osp/osp_precreate.c @@ -1063,7 +1063,7 @@ int osp_precreate_reserve(const struct lu_env *env, struct osp_device *d) * - OST can allocate fid sequence. */ while ((rc = d->opd_pre_status) == 0 || rc == -ENOSPC || - rc == -ENODEV || rc == -EAGAIN) { + rc == -ENODEV || rc == -EAGAIN || rc == -ENOTCONN) { /* * increase number of precreations -- 1.8.3.1