Whamcloud - gitweb
LU-9994 obdclass: fix llog_cat_id2handle() error handling 70/29370/3
authorBruno Faccini <bruno.faccini@intel.com>
Mon, 9 Oct 2017 15:21:50 +0000 (17:21 +0200)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 3 Nov 2017 04:25:56 +0000 (04:25 +0000)
commit97fe84143da81d42770ae29298403aad80103f94
tree838434ff961cc630aa4fe133ca5b74c41e6a9500
parent3dcb7d098759614ae7deb532e1555bd82dac7936
LU-9994 obdclass: fix llog_cat_id2handle() error handling

Patch for LU-9153 ("llog: consolidate common error checking") has
introduced a regression in llog_cat_id2handle() error handling
path by adding llog_cat_process_common() common routine additional
call in sequence and allowing it to return zero even when catalog
entry was invalid and it had cleared it instead to populate
llog_handle, thus causing an exception when handle was later
dereferenced in llog_process_thread().

Signed-off-by: Bruno Faccini <bruno.faccini@intel.com>
Change-Id: I50153b931e3c1567bfe9c15564ba29fabe3a2d4c
Reviewed-on: https://review.whamcloud.com/29370
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Fan Yong <fan.yong@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Sebastien Buisson <sbuisson@ddn.com>
lustre/obdclass/llog_cat.c