From 3a2073d3bf9fab33fa26c5c5f0da2b0821185131 Mon Sep 17 00:00:00 2001 From: Hongchao Zhang Date: Thu, 8 Aug 2013 03:45:32 +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. Change-Id: I39b600eaacdb68f54c6ad7ecb417532bc0ad5e7b Signed-off-by: Hongchao Zhang Reviewed-on: http://review.whamcloud.com/8415 Reviewed-by: Andreas Dilger Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Alex Zhuravlev --- 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 4bd43d3..6b74f12 100644 --- a/lustre/osp/osp_precreate.c +++ b/lustre/osp/osp_precreate.c @@ -1066,7 +1066,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