Whamcloud - gitweb
LU-14927 scrub: share osd_scrub[prep|post] code 05/44705/2
authorJames Simmons <jsimmons@infradead.org>
Wed, 18 Aug 2021 18:04:44 +0000 (14:04 -0400)
committerOleg Drokin <green@whamcloud.com>
Tue, 31 Aug 2021 05:20:56 +0000 (05:20 +0000)
commitdd505aafd833f2dda274d83332e415d739da1d52
tree05152e4430475692727bbc98e78393434cd4c515
parent72c1f7095203cc1badadf581c66f9546476438ab
LU-14927 scrub: share osd_scrub[prep|post] code

Both osd-zfs and osd-ldiskfs functions osd_scrub_prep() and
osd_scrub_post() are nearly identical. Additionally the code
contains internal kernel code that can be only with non-tainted
modules. To avoid the inherited tainted issues create common
code scrub_thread_prep() and scrub_thread_post() to place in
scrub.c in obdclass. These can be handled as kthread helpers
for OSD drivers.

Change-Id: Ia4875eafc053c1e07f437ba55dbdcf58029a7fc6
Signed-off-by: James Simmons <jsimmons@infradead.org>
Reviewed-on: https://review.whamcloud.com/44705
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Aurelien Degremont <degremoa@amazon.com>
Reviewed-by: Lai Siyao <lai.siyao@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/lustre_scrub.h
lustre/obdclass/scrub.c
lustre/osd-ldiskfs/osd_scrub.c
lustre/osd-zfs/osd_scrub.c