From: Hongchao Zhang Date: Wed, 7 Aug 2013 19:45:32 +0000 (+0800) Subject: LU-4313 osp: continue waiting for -ENOTCONN X-Git-Tag: 2.5.53~74 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=3a2073d3bf9fab33fa26c5c5f0da2b0821185131 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 --- 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