Whamcloud - gitweb
LU-10267 llog: fix EOF handling in llog_client_next_block() 82/30582/2
authorJohn L. Hammond <john.hammond@intel.com>
Wed, 29 Nov 2017 14:45:47 +0000 (08:45 -0600)
committerJohn L. Hammond <john.hammond@intel.com>
Thu, 4 Jan 2018 17:51:00 +0000 (17:51 +0000)
commit37047ec8599e9b5ec3884be45c83e58a2b4f5270
tree6c5e4471a6d18a1fa86d013a7d5d724193a0a185
parentb1e6cdef3f28034f6d1c49e491fbb7837d388c22
LU-10267 llog: fix EOF handling in llog_client_next_block()

In llog_client_next_block() update *cur_idx and *cur_offset in the
special case that the handler has returned -EIO after reaching the end
of the log without finding the desired record. This fixes client side
EOF detection in llog_process_thread().

Lustre-change: https://review.whamcloud.com/30313
Lustre-commit: a485c51379a0218aaf01f7c0baf8e4cc993d8824

Signed-off-by: John L. Hammond <john.hammond@intel.com>
Change-Id: If30ebec065ddd38fb7b06c3e16f96bb3cd76fa1b
Reviewed-by: Mike Pershin <mike.pershin@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Signed-off-by: Minh Diep <minh.diep@intel.com>
Reviewed-on: https://review.whamcloud.com/30582
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
lustre/ptlrpc/llog_client.c