Whamcloud - gitweb
LU-4313 osp: continue waiting for -ENOTCONN
authorHongchao Zhang <hongchao.zhang@intel.com>
Wed, 7 Aug 2013 19:45:32 +0000 (03:45 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 30 Dec 2013 22:42:49 +0000 (17:42 -0500)
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 <hongchao.zhang@intel.com>
Reviewed-on: http://review.whamcloud.com/8415
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
lustre/osp/osp_precreate.c

index 7172023..c1c9e6b 100644 (file)
@@ -1068,7 +1068,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