[lustre-devel] [PATCH 09/27] lustre: llite: refresh layout after mirror merge/split

James Simmons jsimmons at infradead.org
Sun Jun 13 16:11:19 PDT 2021

From: Bobi Jam <bobijam at whamcloud.com>

mirror merge/split updates file's LOVEA and revokes client's layout
lock, but the client issuing the layout change needs to refresh its
layout (lov->lsm) as well.

WC-bug-id: https://jira.whamcloud.com/browse/LU-14549
Lustre-commit: bd7a20f8be4644eb ("LU-14549 llite: refresh layout after mirror merge/split")
Signed-off-by: Bobi Jam <bobijam at whamcloud.com>
Reviewed-on: https://review.whamcloud.com/43716
Reviewed-by: Wang Shilong <wshilong at whamcloud.com>
Reviewed-by: Andreas Dilger <adilger at whamcloud.com>
Reviewed-by: Oleg Drokin <green at whamcloud.com>
Signed-off-by: James Simmons <jsimmons at infradead.org>
 fs/lustre/llite/file.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/fs/lustre/llite/file.c b/fs/lustre/llite/file.c
index 26aa7be..7c14cf2 100644
--- a/fs/lustre/llite/file.c
+++ b/fs/lustre/llite/file.c
@@ -3520,6 +3520,8 @@ static long ll_file_unlock_lease(struct file *file, struct ll_ioc_lease *ioc,
 		if (layout_file)
+		ll_layout_refresh(inode, &fd->fd_layout_version);
 		if (!rc)

More information about the lustre-devel mailing list