Whamcloud - gitweb
LU-7001 osp: fix llog processing 32/26132/27
authorAlexander Boyko <alexander.boyko@seagate.com>
Wed, 22 Mar 2017 11:39:48 +0000 (14:39 +0300)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 13 Sep 2017 03:36:56 +0000 (03:36 +0000)
commit8da9fb0cf14cc79bf1985d144d0a201e136dfe51
tree0e0a3925ecc02d0095f1ec9ba3ced99bad34ae54
parentf3a415289b560b5f422efe2bd08b3b7cff113cf0
LU-7001 osp: fix llog processing

The osp_sync_thread base on fact that llog_cat_process
will not end until umount. This is worng when processing reaches
bottom of catalog, or if catalog is wrapped.
The patch fixes this issue.

For wrapped catalog llog_process_thread could process old
record.
1 thread llog_process_thread read chunk and proccing first record
2 thread add rec to this catalog at this chunk and
  update bitmap
1 check bitmap for next idx and process old record

Test conf-sanity 106 was added.

Signed-off-by: Alexander Boyko <alexander.boyko@seagate.com>
Seagate-bug-id: MRP-4235
Change-Id: Ifc983018e3a325622ef3215bec4b69f5c9ac2ba2
Reviewed-on: https://review.whamcloud.com/26132
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andriy Skulysh
Reviewed-by: Mike Pershin <mike.pershin@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/obdclass/llog.c
lustre/obdclass/llog_osd.c
lustre/osp/osp_internal.h
lustre/osp/osp_sync.c
lustre/tests/conf-sanity.sh