Whamcloud - gitweb
LU-7800 llog: check if next llog exists 42/18542/8
authorDi Wang <di.wang@intel.com>
Fri, 19 Feb 2016 09:29:26 +0000 (04:29 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 15 Aug 2016 21:08:57 +0000 (21:08 +0000)
commit96509385abe2d03bd9212edef26e4aabe0ebf8bd
tree658bda07015321f6adb3ed30e075984496e208c6
parente3d507eec50fc1ff79acf2a9f93d52d698c887d7
LU-7800 llog: check if next llog exists

Because next llog creation will only be checked
and created in declare phase, and it does not
serialize the catllog accessing in the whole
declare_add and add process, so if there are
mulitple threads access the catlog at the same
time, and if the llog creation did not succeeds,
then next_log (in catllog) might be NULL, and
it will cause panic in llog_cat_current_log().

Signed-off-by: Di Wang <di.wang@intel.com>
Change-Id: I2343023c1f3109c077c98d78d3669377d95ed42f
Reviewed-on: http://review.whamcloud.com/18542
Tested-by: Jenkins
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/obdclass/llog_cat.c