Whamcloud - gitweb
LU-14039 obdclass: set LA_TYPE when update_log init 64/40264/2
authorYang Sheng <ys@whamcloud.com>
Thu, 15 Oct 2020 14:57:46 +0000 (22:57 +0800)
committerOleg Drokin <green@whamcloud.com>
Sat, 7 Nov 2020 08:15:13 +0000 (08:15 +0000)
commit7aef9051f38bcb5757bc132ad7627742b74c654c
tree3f3ef043100da01fd36c0e27620f75eb51486798
parent33f95f7ae7300f93433bc781845594d292a18b67
LU-14039 obdclass: set LA_TYPE when update_log init

Fix for LBUG:
osp_md_create()) ASSERTION( attr->la_valid & LA_TYPE ) failed:
osp_md_create()) LBUG
Pid: 6024, comm: lod0002_rec0001 3.10.0-1062.18.1.el7_lustre
Call Trace:
 libcfs_call_trace+0x8c/0xc0 [libcfs]
 lbug_with_loc+0x4c/0xa0 [libcfs]
 osp_md_create+0x42a/0x470 [osp]
 llog_osd_get_cat_list+0x8d4/0xbd0 [obdclass]
 lod_sub_prep_llog+0xb9/0x783 [lod]
 lod_sub_recovery_thread+0x383/0xcf0 [lod]
 kthread+0xd1/0xe0
 ret_from_fork_nospec_begin+0x7/0x21

Signed-off-by: Yang Sheng <ys@whamcloud.com>
Change-Id: I035f3f2da5dba54b86431cec65c48e9c5010224c
Reviewed-on: https://review.whamcloud.com/40264
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Emoly Liu <emoly@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/lfsck/lfsck_lib.c
lustre/obdclass/llog_osd.c