Whamcloud - gitweb
LU-1438 quota: quota active checking is missed on slave
authorNiu Yawei <niu@whamcloud.com>
Fri, 8 Jun 2012 04:55:40 +0000 (21:55 -0700)
committerJohann Lombardi <johann@whamcloud.com>
Tue, 12 Jun 2012 20:03:31 +0000 (16:03 -0400)
commitbd671c0e5f08e9c862f7d79e307f1173355ef463
treecd83af46212d9190a965e26f4c3f8bb573e3d4bc
parent423bfd10973c4adf18a68f9a8e11f934da6394e0
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: I707bc34684e95f2a0beec99548dc2d78a4ce8bbf
Reviewed-on: http://review.whamcloud.com/3060
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Fan Yong <yong.fan@whamcloud.com>
Reviewed-by: Johann Lombardi <johann@whamcloud.com>
lustre/quota/quota_context.c
lustre/quota/quota_interface.c