Whamcloud - gitweb
LU-2211 quota: cap how long a thread can wait for quota
authorJohann Lombardi <johann.lombardi@intel.com>
Fri, 19 Oct 2012 13:59:12 +0000 (15:59 +0200)
committerOleg Drokin <green@whamcloud.com>
Tue, 30 Oct 2012 19:56:45 +0000 (15:56 -0400)
commite88b3bf26a477a2b42182c4b451bc2fe55fa88fa
tree77ed92612752f8de1568062c441203fabdef52d0
parent624a3ac233938153e889ae81f639cf46c0a8312b
LU-2211 quota: cap how long a thread can wait for quota

Change qsd_op_begin() path to wait for quota space for less than
obd_timeout / 2.
This patch also abandons the qsd_ops enum in favor of a more generic
qsd_adjust() implementation which will always do the same processing
even if adjustment is delayed because of a quota request in flight.

Signed-off-by: Johann Lombard <johann.lombardi@intel.com>
Signed-off-by: Niu Yawei <niu@whamcloud.com>
Change-Id: I5faf637c5330ca7f503c292e0e28edb84458ee89
Reviewed-on: http://review.whamcloud.com/4314
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Fan Yong <yong.fan@whamcloud.com>
lustre/doc/osd-api.txt
lustre/include/lustre_quota.h
lustre/osd-ldiskfs/osd_handler.c
lustre/quota/qsd_handler.c
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
lustre/tests/sanity-quota.sh