Whamcloud - gitweb
LU-10773 obdclass: yield cpu during changelog_block_trim_ext 06/31506/5
authorFan Yong <fan.yong@intel.com>
Mon, 5 Mar 2018 15:49:56 +0000 (23:49 +0800)
committerJohn L. Hammond <john.hammond@intel.com>
Thu, 5 Apr 2018 20:02:39 +0000 (20:02 +0000)
commit7820c292fc3cd3b5600c2c1e3838a55ea648fd84
treeb3aa73d83dcdad7ff84c3f1b6811a3123377f097
parent0e51abb8a512213b58579e66a9d74133001877ff
LU-10773 obdclass: yield cpu during changelog_block_trim_ext

To avoid soft-lockup if there are too many records to be handled.
The patch also filters out zero-sized records to avoid dead loop.

Master-change: https://review.whamcloud.com/31516

Signed-off-by: Fan Yong <fan.yong@intel.com>
Change-Id: Ia094f9153b5ef2602103d2ee13ee7ad3ffe6dc4f
Reviewed-on: https://review.whamcloud.com/31506
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Mike Pershin <mike.pershin@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
lustre/obdclass/llog_osd.c