Whamcloud - gitweb
LU-12509 ofd: ofd_precreate_objects lockdep warning 20/35420/3
authorLi Dongyang <dongyangli@ddn.com>
Mon, 15 Jul 2019 07:59:52 +0000 (17:59 +1000)
committerOleg Drokin <green@whamcloud.com>
Fri, 9 Aug 2019 04:40:26 +0000 (04:40 +0000)
commit697dcf4e87f2dbebe57f3ccb9c0b0962b89cf1b4
treec530c9bdbcf7c29f11fb892fecd9bc95dff0c5b5
parentfca1a999899a5a34ff91ad9e729fe517c6a10cab
LU-12509 ofd: ofd_precreate_objects lockdep warning

ofd_precreate_objects()->ofd_write_lock() is used to
get the write locks, later dt_write_lock() is called
to do the same on the last_id object.

This triggers a false positive with lockdep enabled,
use a different sublass on the last_id to silence
the warning.

Consolidate lockdep subclasses into a single place,
dt_object_role.

Signed-off-by: Li Dongyang <dongyangli@ddn.com>
Change-Id: I283782352bef8422e6c327ce5cfac306da289e37
Reviewed-on: https://review.whamcloud.com/35420
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Li Xi <lixi@ddn.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
17 files changed:
lustre/include/dt_object.h
lustre/include/md_object.h
lustre/lfsck/lfsck_engine.c
lustre/lod/lod_object.c
lustre/mdd/mdd_dir.c
lustre/mdd/mdd_internal.h
lustre/mdd/mdd_lock.c
lustre/mdd/mdd_object.c
lustre/mdd/mdd_orphans.c
lustre/mdd/mdd_permission.c
lustre/obdclass/local_storage.c
lustre/obdclass/local_storage.h
lustre/ofd/ofd_internal.h
lustre/ofd/ofd_objects.c
lustre/osp/osp_md_object.c
lustre/target/out_handler.c
lustre/target/out_lib.c