Whamcloud - gitweb
b=18630 avoid the race of acquiring/releasing quota
authorLanden <tianzy@sun.com>
Wed, 23 Dec 2009 07:52:25 +0000 (10:52 +0300)
committerMike Tappro <tappro@garden.(none)>
Wed, 23 Dec 2009 19:52:10 +0000 (22:52 +0300)
commit2650455e68fea4442b43f39acc7e56fdc934867e
tree0994f7495cc0cb7f6b2dabdce301f143c9e3accc
parent6a99fbedbffddae90e6b28c78141f98957209247
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