Whamcloud - gitweb
LU-10055 mdt: use max_mdsize in reply for layout intent 33/33133/4
authorMikhal Pershin <mike.pershin@intel.com>
Mon, 30 Oct 2017 16:45:42 +0000 (19:45 +0300)
committerOleg Drokin <green@whamcloud.com>
Wed, 16 Jan 2019 07:30:40 +0000 (07:30 +0000)
commit9c57139f261292bbd20e5f304beba4e209a54a40
tree92d407fa7d990ba28abf283562746b232aa259a4
parentd63cd9f9795848c03c5882b76e971dfcd00433e6
LU-10055 mdt: use max_mdsize in reply for layout intent

The LAYOUT intent reply LVB buffer size is set to a current
file layout, meanwhile it is not working when layout is changed
and the mdt_max_mdsize is better to use as size of reply buffer.
This buffer will be shrinked to the new layout size after all.

Without that change the new layout size may be bigger and layout
is not returned back, causing extra RPC from client.
The mdt_lvbo_fill() is changed also to update mdt_max_mdsize if
larger layout is found. The related message level is decreased
from D_ERROR to D_INFO.

Lustre-change: https://review.whamcloud.com/30004
Lustre-commit: 4f27911cadf10d0b2fd6451569e688233eaf50d1

Signed-off-by: Mikhal Pershin <mike.pershin@intel.com>
Change-Id: Iaac5dcb8b4c5aa2c050dddb5b3fb2662c59f133b
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Jinshan Xiong <jinshan.xiong@intel.com>
Signed-off-by: Minh Diep <mdiep@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/33133
Tested-by: Jenkins
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Mike Pershin <mpershin@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/mdt/mdt_handler.c
lustre/mdt/mdt_lvb.c