Whamcloud - gitweb
LU-12702 quota: wait pending write before acquiring remotely 23/41023/9
authorWang Shilong <wshilong@ddn.com>
Mon, 21 Dec 2020 02:18:45 +0000 (10:18 +0800)
committerOleg Drokin <green@whamcloud.com>
Tue, 5 Jan 2021 08:27:06 +0000 (08:27 +0000)
commit18cd3e1e28afd311e4743dab1011f85fba0e1765
treefffdbdbc7db994b492968ded3b6074d9f5d14051
parenta11c18cbab00d0300b8f025b45090b08ba748f5e
LU-12702 quota: wait pending write before acquiring remotely

There is a window that ZFS has updated usage, but
pending_write has not been reduced. This could cause
us to grant more space.

With soft least qunit introduced, after timer reach,
local slave might still have some space to consume,
it is possible that we might exceed this limit.

Test-Parameters: fstype=zfs testlist=sanity-quota,sanity-quota,sanity-quota
Signed-off-by: Wang Shilong <wshilong@ddn.com>
Change-Id: I0e1a94fd0b637e154642de5922a0670780c56ef2
Reviewed-on: https://review.whamcloud.com/41023
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Hongchao Zhang <hongchao@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/dt_object.h
lustre/osd-zfs/osd_handler.c
lustre/quota/qsd_handler.c
lustre/tests/sanity-quota.sh