Whamcloud - gitweb
LU-4313 osp: continue waiting for -ENOTCONN 15/8415/3
authorHongchao Zhang <hongchao.zhang@intel.com>
Wed, 7 Aug 2013 19:45:32 +0000 (03:45 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 3 Dec 2013 13:46:26 +0000 (13:46 +0000)
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 4bd43d3..6b74f12 100644 (file)
@@ -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