[LU-16094] lfsck_layout_slave_prep()) ASSERTION( !llsd->llsd_rbtree_valid ) Created: 12/Aug/22  Updated: 07/Dec/23

Status: Open
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Lai Siyao Assignee: Lai Siyao
Resolution: Unresolved Votes: 0
Labels: None

Issue Links:
Related
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

LFSCK hit crash

[25949.297715] LustreError: 29519:0:(lfsck_layout.c:5346:lfsck_layout_slave_prep()) ASSERTION( !llsd->llsd_rbtree_valid ) failed:
[25949.297717] LustreError: 29519:0:(lfsck_layout.c:5346:lfsck_layout_slave_prep()) LBUG
[25949.297718] Pid: 29519, comm: lfsck 3.10.0-1160.59.1.el7_lustre.ddn16.x86_64 #1 SMP Tue Apr 5 16:43:49 PDT 2022
[25949.297718] Call Trace:
[25949.297788] [<0>] libcfs_call_trace+0x90/0xf0 [libcfs]
[25949.297796] [<0>] lbug_with_loc+0x4c/0xa0 [libcfs]
[25949.297879] [<0>] lfsck_layout_slave_prep+0x51d/0x590 [lfsck]
[25949.297893] [<0>] lfsck_master_engine+0x1a4/0x13d0 [lfsck]
[25949.297897] [<0>] kthread+0xd1/0xe0
[25949.297901] [<0>] ret_from_fork_nospec_begin+0x7/0x21
[25949.298081] [<0>] 0xfffffffffffffffe
[25949.298082] Kernel panic - not syncing: LBUG

The code shows lfsck_quit() may not be called in some corner cases, which caused this assertion failure.



 Comments   
Comment by Gerrit Updater [ 12/Aug/22 ]

"Lai Siyao <lai.siyao@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/48207
Subject: LU-16094 lfsck: call lfsck_quit() in main function
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 2beb188c1e9b49a4aee762bab054172daad8c01f

Generated at Sat Feb 10 03:23:57 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.