Whamcloud - gitweb
LU-1438 quota: quota active checking is missed on slave
authorNiu Yawei <niu@whamcloud.com>
Wed, 13 Jun 2012 02:42:01 +0000 (19:42 -0700)
committerAndreas Dilger <adilger@whamcloud.com>
Fri, 22 Jun 2012 15:56:36 +0000 (11:56 -0400)
commitbc4c89e0608893ec8fe15012f9477de173ad41d3
tree5efe69485ad2d77fc1c2e20ea1227b7da54e869e
parentfafa0e31a54281167eebd615da847866eaf03a93
LU-1438 quota: quota active checking is missed on slave

On quota slave, we missed checking if quota is enabled in the
quota_check_common() and several other places. Which could cause
slave retry acquire quota in quota_chk_acq_common() infinitely
when the quota is already turned off on master.

Signed-off-by: Niu Yawei <niu@whamcloud.com>
Change-Id: Iaa48c7cca05daf595b6d3b7e4025c7650e460918
Reviewed-on: http://review.whamcloud.com/3097
Tested-by: Hudson
Reviewed-by: Fan Yong <yong.fan@whamcloud.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Johann Lombardi <johann@whamcloud.com>
lustre/quota/quota_context.c
lustre/quota/quota_interface.c