From 90100b852bc40469cb76ca04eea135c5c673800d Mon Sep 17 00:00:00 2001 From: yury Date: Thu, 19 Oct 2006 06:46:11 +0000 Subject: [PATCH] - put fix from niu to correct place. --- lustre/obdfilter/filter_io_24.c | 2 -- lustre/obdfilter/filter_io_26.c | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/lustre/obdfilter/filter_io_24.c b/lustre/obdfilter/filter_io_24.c index a555477..314481b 100644 --- a/lustre/obdfilter/filter_io_24.c +++ b/lustre/obdfilter/filter_io_24.c @@ -455,8 +455,6 @@ int filter_commitrw_write(struct obd_export *exp, struct obdo *oa, int objcount, push_ctxt(&saved, &obd->obd_lvfs_ctxt, NULL); cleanup_phase = 2; - DQUOT_INIT(inode); - down(&inode->i_sem); oti->oti_handle = fsfilt_brw_start(obd, objcount, &fso, niocount, res, oti); diff --git a/lustre/obdfilter/filter_io_26.c b/lustre/obdfilter/filter_io_26.c index b2be0d8..9dbd6bf 100644 --- a/lustre/obdfilter/filter_io_26.c +++ b/lustre/obdfilter/filter_io_26.c @@ -635,6 +635,7 @@ int filter_commitrw_write(struct obd_export *exp, struct obdo *oa, push_ctxt(&saved, &obd->obd_lvfs_ctxt, NULL); cleanup_phase = 2; + DQUOT_INIT(inode); LOCK_INODE_MUTEX(inode); fsfilt_check_slow(obd, now, obd_timeout, "i_mutex"); oti->oti_handle = fsfilt_brw_start(obd, objcount, &fso, niocount, res, -- 1.8.3.1