X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fobdfilter%2Ffilter.c;h=1d062b41fd502867805ff6306af52eb1c20bb49b;hb=67cee1b194384ce91e79ba2e9be606d2e3f709fa;hp=c80a924d7b2c7fbdc87a6ef00e4371401842d329;hpb=2f14e1230b500f17de4f0c02e2865f49c2f41bcb;p=fs%2Flustre-release.git diff --git a/lustre/obdfilter/filter.c b/lustre/obdfilter/filter.c index c80a924..1d062b4 100644 --- a/lustre/obdfilter/filter.c +++ b/lustre/obdfilter/filter.c @@ -3432,21 +3432,12 @@ int filter_setattr(struct obd_export *exp, struct obd_info *oinfo, filter = &exp->exp_obd->u.filter; push_ctxt(&saved, &exp->exp_obd->obd_lvfs_ctxt, NULL); - /* - * We need to be atomic against a concurrent write - * (which takes the semaphore for reading). fmd_mactime_xid - * checks will have no effect if a write request with lower - * xid starts just before a setattr and finishes later than - * the setattr (see bug 21489, comment 27). - */ if (oa->o_valid & (OBD_MD_FLMTIME | OBD_MD_FLATIME | OBD_MD_FLCTIME)) { - down_write(&dentry->d_inode->i_alloc_sem); fmd = filter_fmd_get(exp, oa->o_id, oa->o_gr); if (fmd && fmd->fmd_mactime_xid < oti->oti_xid) fmd->fmd_mactime_xid = oti->oti_xid; filter_fmd_put(exp, fmd); - up_write(&dentry->d_inode->i_alloc_sem); } /* setting objects attributes (including owner/group) */