Whamcloud - gitweb
LU-7001 osp: fix llog processing 97/32097/2
authorAlexander Boyko <alexander.boyko@seagate.com>
Wed, 22 Mar 2017 11:39:48 +0000 (14:39 +0300)
committerJohn L. Hammond <john.hammond@intel.com>
Thu, 3 May 2018 20:11:56 +0000 (20:11 +0000)
commit10cc97e3c1487692b460702bf46220b1acb452ee
tree2a701fe5831791afbe6ad7a1ddb464ee55a3578c
parent4118b5317b23d6d2d6c09ca1cdc797ec027622c8
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.

Lustre-change: https://review.whamcloud.com/26132
Lustre-commit: 8da9fb0cf14cc79bf1985d144d0a201e136dfe51

Signed-off-by: Alexander Boyko <alexander.boyko@seagate.com>
Seagate-bug-id: MRP-4235
Change-Id: Ifc983018e3a325622ef3215bec4b69f5c9ac2ba2
Reviewed-by: Andriy Skulysh
Reviewed-by: Mike Pershin <mike.pershin@intel.com>
Signed-off-by: Minh Diep <minh.diep@intel.com>
Reviewed-on: https://review.whamcloud.com/32097
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
lustre/obdclass/llog.c
lustre/obdclass/llog_osd.c
lustre/osp/osp_sync.c
lustre/tests/conf-sanity.sh