Whamcloud - gitweb
LU-1842 quota: add core QSD code
authorJohann Lombardi <johann.lombardi@intel.com>
Thu, 4 Oct 2012 14:18:26 +0000 (16:18 +0200)
committerOleg Drokin <green@whamcloud.com>
Sat, 6 Oct 2012 19:06:01 +0000 (15:06 -0400)
commitb2cb6fd1095f9c483b7bc1ebbbfdaef719aea87c
treebec80734a086241613cc5efeee7b62562efba424
parent1bdeabf2eb49e6c3dcfe83994b59426b36e724a0
LU-1842 quota: add core QSD code

Add acquire/release logic on the qsd side as well as reintegration
which is handled in 3 steps:
- enqueue global index lock
- fetch global index and update local enforce list
- fetch slave index and update local copy
- adjust/release quota space as appropriate

This patch also fixes the ofd code to call ->ldo_recovery_complete
across the stack.

Signed-off-by: Johann Lombardi <johann.lombardi@intel.com>
Change-Id: Ib4a8910fe34de878159827c76b40a8f899aaad10
Signed-off-by: Niu Yawei <yawei.niu@intel.com>
Reviewed-on: http://review.whamcloud.com/4182
Tested-by: Hudson
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
Reviewed-by: Jinshan Xiong <jinshan.xiong@whamcloud.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Niu Yawei <niu@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
17 files changed:
lustre/include/lquota.h
lustre/ofd/ofd_dev.c
lustre/ofd/ofd_internal.h
lustre/ofd/ofd_obd.c
lustre/osd-ldiskfs/osd_handler.c
lustre/osd-zfs/osd_handler.c
lustre/osp/osp_dev.c
lustre/quota/Makefile.in
lustre/quota/lquota_internal.h
lustre/quota/qsd_config.c
lustre/quota/qsd_handler.c [new file with mode: 0644]
lustre/quota/qsd_internal.h
lustre/quota/qsd_lib.c
lustre/quota/qsd_lock.c
lustre/quota/qsd_reint.c
lustre/quota/qsd_request.c
lustre/quota/qsd_writeback.c