Whamcloud - gitweb
LU-2360 ptlrpc: a few fixes for req_history read
This patch fixed a few issues in seq_file operations of ptlrpc
request history:
- start() function always start from CPT 0 despite of start position,
this might cause endless read.
- ptlrpc history sequence can't be directly used as read position of
seq_file, because seq_read() can increase position to indicate
reading of the next element, this will actually change CPT ID of
sequence, which means it's possible that next() will never be able
to finish iteration of requests on a CPT in some case.
Signed-off-by: Liang Zhen <liang@whamcloud.com>
Change-Id: I3ee4e06d3b93dcc61bfd910725d4cab87b555511
Reviewed-on: http://review.whamcloud.com/4888
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: wangdi <di.wang@intel.com>