Whamcloud - gitweb
LU-9158 quota: adjust quota ASAP 04/31404/2
authorHongchao Zhang <hongchao.zhang@intel.com>
Wed, 6 Dec 2017 08:49:54 +0000 (16:49 +0800)
committerJohn L. Hammond <john.hammond@intel.com>
Thu, 5 Apr 2018 19:54:06 +0000 (19:54 +0000)
commitb03de1fe3d11d65716020cfd07e0db16628af5c7
tree6c794c280ab193aeec6507a1bee69fa9cba58373
parent75010631ddbaef52739d8b5bd8dadf7051a2830f
LU-9158 quota: adjust quota ASAP

In qsd_upd_thread, the quota adjust request will only be
scheduled to run when the current time (seconds) is larger
than the queued time (seconds). The transactions in subtest 12b
of sanity_quota are committed in one second simultaneously,
which cause the quota is not freed.

Test-Parameters: alwaysuploadlogs \
envdefinitions=ENABLE_QUOTA=yes,DEBUG_SIZE=64,PTLDEBUG=rpctrace \
clientcount=2 osscount=2 mdscount=2 mdtcount=4 \
austeroptions=-R mdtfilesystemtype=zfs ostfilesystemtype=zfs \
testlist=sanity-quota,sanity-quota,sanity-quota,sanity-quota

Lustre-change: https://review.whamcloud.com/30765
Lustre-commit: 70e1532f6216e4ff925bb9a902ec6bd8ea81c084

Change-Id: I9310237d58a21ee8d47daab8901892bd12016339
Signed-off-by: Hongchao Zhang <hongchao.zhang@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Fan Yong <fan.yong@intel.com>
Signed-off-by: Minh Diep <minh.diep@intel.com>
Reviewed-on: https://review.whamcloud.com/31404
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
lustre/quota/qsd_writeback.c