Whamcloud - gitweb
LU-16958 llite: migrate vs regular ops deadlock 41/51641/2
authorBobi Jam <bobijam@whamcloud.com>
Wed, 12 Jul 2023 15:05:27 +0000 (23:05 +0800)
committerOleg Drokin <green@whamcloud.com>
Tue, 1 Aug 2023 06:15:22 +0000 (06:15 +0000)
commit8f2c1592c3bbd0351ab3984a88a3eed7075690c8
tree818cfd02ae87988d64f02952a7a4c5c662528883
parentaf4bc11d8e1e45027a3e3de1caaca99e0eda9bff
LU-16958 llite: migrate vs regular ops deadlock

When it need to lock inode in lov_conf_set(), it could have hold
inode's lli_layout_mutex, we need unlock the layout mutex before
taking its inode lock to keep the lock order.

Fixes: 51d62f2122f ("LU-16637 llite: call truncate_inode_pages() in inode lock")
Signed-off-by: Bobi Jam <bobijam@whamcloud.com>
Change-Id: I7ee58039a6d31daefc625ac571a52baf112f8151
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/51641
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/cl_object.h
lustre/llite/file.c
lustre/llite/llite_internal.h
lustre/llite/llite_lib.c
lustre/llite/vvp_object.c
lustre/lov/lov_object.c