From: alex Date: Thu, 7 Jul 2005 13:38:55 +0000 (+0000) Subject: b=6913 X-Git-Tag: 1.4.10~923 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=9c7e2b102aa33669f42c81d29df3c4b889ba001f;p=fs%2Flustre-release.git b=6913 - retract extents lock from clients even if OSS hasn't created object yet --- diff --git a/lustre/obdfilter/filter.c b/lustre/obdfilter/filter.c index 46b9803..bc1f0ff 100644 --- a/lustre/obdfilter/filter.c +++ b/lustre/obdfilter/filter.c @@ -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) {