Whamcloud - gitweb
LU-14762 lmv: compare space to mkdir on parent MDT 97/43997/5
authorLai Siyao <lai.siyao@whamcloud.com>
Mon, 14 Jun 2021 07:26:47 +0000 (15:26 +0800)
committerOleg Drokin <green@whamcloud.com>
Thu, 8 Jul 2021 02:05:49 +0000 (02:05 +0000)
commit002c2a80266b23c1df02d554fbdc7e5817c42d13
tree0d831a41d6427a201942b56b76054606a6088a55
parent8d1895f2f69bd2eec3ff6af5eb356740fa2c8766
LU-14762 lmv: compare space to mkdir on parent MDT

In QOS subdirectory creation, subdirectories are kept on parent MDT
if it is less full than average, however it checks weight other than
free space, while "weight = free space - penalty", if MDTs have
different penalties, the result is not accurate, therefore this may
not work.

Check free space instead, and loosen the critirion to allow the
free space within the range of QOS threshold.

Fixes: 3f6fc483013d ("LU-13439 lmv: qos stay on current MDT if less full")
Signed-off-by: Lai Siyao <lai.siyao@whamcloud.com>
Change-Id: Id34cf8f3f58fee9d329f0d05c2f7a6463b67dfe1
Reviewed-on: https://review.whamcloud.com/43997
Reviewed-by: Hongchao Zhang <hongchao@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/include/lu_object.h
lustre/lmv/lmv_obd.c
lustre/obdclass/lu_tgt_descs.c