Whamcloud - gitweb
LU-10395 osd: stop OI at device shutdown 15/37615/5
authorAlex Zhuravlev <bzzz@whamcloud.com>
Tue, 18 Feb 2020 15:04:44 +0000 (18:04 +0300)
committerOleg Drokin <green@whamcloud.com>
Tue, 7 Apr 2020 17:19:18 +0000 (17:19 +0000)
commit2789978e1192dbf6d90399c96b5594e0dc049cd9
tree4ebbfc262a7c9518a1dfe156ce3fb03ac48ea691
parent0bd623398f2e085e6a801bb4ce9b90b03fcff061
LU-10395 osd: stop OI at device shutdown

and not at obd_cleanup(). otherwise a race is possible:
 umount <MDT> stopping OI vs MGS accessing same OSD which
results in the assertion:
ASSERTION( osd->od_oi_table != NULL && osd->od_oi_count >= 1 )

Signed-off-by: Alex Zhuravlev <bzzz@whamcloud.com>
Change-Id: I24fccea718f2e2663166cfb0ff26571039357535
Reviewed-on: https://review.whamcloud.com/37615
Reviewed-by: Alexander Boyko <c17825@cray.com>
Reviewed-by: Alexander Zarochentsev <alexander.zarochentsev@hpe.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/osd-ldiskfs/osd_handler.c
lustre/osd-ldiskfs/osd_scrub.c