Whamcloud - gitweb
LU-11238 lod: refine obj avoid collect for FLR 95/32995/4
authorBobi Jam <bobijam@whamcloud.com>
Tue, 14 Aug 2018 03:12:12 +0000 (11:12 +0800)
committerOleg Drokin <green@whamcloud.com>
Tue, 28 Aug 2018 05:51:49 +0000 (05:51 +0000)
commitfd774a0dc30b4078956ff6022f5d008b287c276d
tree5db8cb70c2089af1d500ae8da65f928afa031009
parent1515ff14c2e51693c099e2acfc3d94bf141e5e3a
LU-11238 lod: refine obj avoid collect for FLR

When a FLR file is being created, the MDS tries to allocate objects
for the first components of all mirrors, and in this decalre phase,
the objects for their component has been allocated, but the
component's ID and init flag has not been set until the exec phase,
lod_create()->lod_striped_create(), so lod_collect_avoidance() should
take heed of this scenario.

This patch also addes some debug messages.

Test-Parameters: testlist=sanity-flr,sanity-flr,sanity-flr,sanity-flr,sanity-flr
Signed-off-by: Bobi Jam <bobijam@whamcloud.com>
Change-Id: I16ef2da44f6db06a8e0bc67ae2646cdc3ff3bb63
Reviewed-on: https://review.whamcloud.com/32995
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: John L. Hammond <jhammond@whamcloud.com>
Reviewed-by: Jinshan Xiong <jinshan.xiong@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/lod/lod_qos.c