Whamcloud - gitweb
b=18630 avoid the race of acquiring/releasing quota
authorLanden <tianzy@sun.com>
Thu, 17 Dec 2009 03:52:25 +0000 (11:52 +0800)
committerjohann <johann@granier.local>
Thu, 17 Dec 2009 12:39:06 +0000 (13:39 +0100)
commit744134337554f078d155a8fa53f427e03b9adbd5
treeaf4744253e534ee91c4a26a4bbd4469df887dab9
parent168670f180b7f00c7d17afebad8c6ac1040f346d
b=18630 avoid the race of acquiring/releasing quota

Before this patch, checking and computing the info of lqs
are located in two different functions(check_cur_qunit()
and schedule_dqacq()). It is racy. With this patch, they
will all happen in one function(check_cur_qunit()).

i=johann
i=panda
lustre/include/obd_support.h
lustre/quota/quota_context.c
lustre/tests/sanity-quota.sh