Whamcloud - gitweb
b=6913
authoralex <alex>
Thu, 7 Jul 2005 13:38:55 +0000 (13:38 +0000)
committeralex <alex>
Thu, 7 Jul 2005 13:38:55 +0000 (13:38 +0000)
 - retract extents lock from clients even if OSS hasn't created object yet

lustre/obdfilter/filter.c

index 46b9803..bc1f0ff 100644 (file)
@@ -2629,7 +2629,8 @@ static int filter_destroy(struct obd_export *exp, struct obdo *oa,
         if (dchild->d_inode == NULL) {
                 CDEBUG(D_INODE, "destroying non-existent object "LPU64"\n",
                        oa->o_id);
-                GOTO(cleanup, rc = -ENOENT);
+                if (have_prepared)
+                        GOTO(cleanup, rc = -ENOENT);
         }
 
         if (!have_prepared) {