Whamcloud - gitweb
LU-11427 lod: create layout in mdo_create() 33/33233/3
authorJinshan Xiong <jinshan.xiong@uber.com>
Tue, 25 Sep 2018 19:13:48 +0000 (12:13 -0700)
committerOleg Drokin <green@whamcloud.com>
Mon, 29 Oct 2018 16:01:42 +0000 (16:01 +0000)
commitd7073b8a33864e10d1656c9244a90f82a669520c
treec0abfe43b45068d7468bdc3b28ac0bd373f2f7d9
parent818340364d51ac9fb97151b0c244c4e2fd477715
LU-11427 lod: create layout in mdo_create()

This patch will create MDT layout in the path of mdo_create() before
mdt_object_open_lock() is invoked. The previous implementation created
layout in mdt_create_data() that caused the problem that layout lock
couldn't be packed in the reply of the open request. Later on an extra
layout request has to be issued for layout lock, which kills all
performance gains by DoM for small files write.

Signed-off-by: Jinshan Xiong <jinshan.xiong@uber.com>
Change-Id: Id11ac79c89d12bbe0e925fbc89417fca3e72e479
Reviewed-on: https://review.whamcloud.com/33233
Tested-by: Jenkins
Reviewed-by: Mike Pershin <mpershin@whamcloud.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/lod/lod_object.c