Whamcloud - gitweb
LU-13261 mdt: PFL layout changed while accessing 21/37821/2
authorHongchao Zhang <hongchao@whamcloud.com>
Sun, 19 Jan 2020 06:26:10 +0000 (01:26 -0500)
committerOleg Drokin <green@whamcloud.com>
Wed, 25 Mar 2020 06:31:51 +0000 (06:31 +0000)
commit821319d2f09302bfbcd34796eadbafd70e38f9e1
treea3eacc8afbd8e394f4fdfef7b68a7a3965a0806b
parent83c603a0e4a4c357cbce1bdb587c30ca5bf1298f
LU-13261 mdt: PFL layout changed while accessing

The PFL layout EA could be enlarged when the corresponding layout
of some IO range is started to be written, which can cause other
thread to get incorrect layout size at "mdt_intent_layout" and cause
"mdt_lvbo_fill" to fail checking the real layout size.

In Lustre, "ldlm_handle_enqueue0" has processed the error "-ERANGE"
and it will retry after expanding the layout buffer size, then it
only needs to decrease the debug level of the log in "mdt_lvbo_fill"

Lustre-change: https://review.whamcloud.com/37684
Lustre-commit: 35d01a0fc7b2933d589f5a6bc4878382cbc15b52

Change-Id: Iad722d1dac187f57ae77606a4d4587525412cd68
Signed-off-by: Hongchao Zhang <hongchao@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Bobi Jam <bobijam@hotmail.com>
Signed-off-by: Minh Diep <mdiep@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/37821
Tested-by: Maloo <maloo@whamcloud.com>
lustre/mdt/mdt_lvb.c