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)
committerOleg Drokin <green@whamcloud.com>
Fri, 2 Nov 2012 22:49:12 +0000 (18:49 -0400)
commit7c304e100062458a6ffef96f268fdefd8c91d0d1
tree3a1068818f79625ccf9eca880187137ce719948d
parent5588c6dd280355f47003c34f6f4e34eae4b577b5
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