Whamcloud - gitweb
- fix in comment;
authoryury <yury>
Tue, 31 Oct 2006 15:28:16 +0000 (15:28 +0000)
committeryury <yury>
Tue, 31 Oct 2006 15:28:16 +0000 (15:28 +0000)
- use -EALRADY instead of -1 in ll_close_next_lli to point out that thread should be stopped.

lustre/cmm/cmm_object.c
lustre/llite/llite_close.c

index 0c6c44f..999c218 100644 (file)
@@ -437,8 +437,8 @@ static int cml_create(const struct lu_env *env,
                 }
 
                 /* 
-                 * Proceed with cmm_split_try() as nothing happened, split is
-                 * not yet expected.
+                 * Proceed with mdo_create() as nothing happened, split is not
+                 * yet expected.
                  */
         } else {
                 /* 
index 9e2e680..2881d90 100644 (file)
@@ -234,7 +234,7 @@ static struct ll_inode_info *ll_close_next_lli(struct ll_close_queue *lcq)
                                  lli_close_list);
                 list_del_init(&lli->lli_close_list);
         } else if (atomic_read(&lcq->lcq_stop))
-                lli = ERR_PTR(-1);
+                lli = ERR_PTR(-EALREADY);
 
         spin_unlock(&lcq->lcq_lock);
         return lli;