Whamcloud - gitweb
LU-9857 lmv: dir page is released while in use 80/32180/3
authorLai Siyao <lai.siyao@intel.com>
Fri, 27 Apr 2018 16:11:55 +0000 (00:11 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Sat, 12 May 2018 03:52:31 +0000 (03:52 +0000)
commitb51e8d6b53a3f3257fd9106ec5ec5eec302baa7f
tree720912bdb9401c6549fa99e02018e258261cacec
parent9d49453b675fba97002a2553769be89800783db3
LU-9857 lmv: dir page is released while in use

When popping stripe dirent, if it reaches page end,
stripe_dirent_next() releases current page and then reads next one,
but current dirent is still in use, as will cause wrong values used,
and trigger assertion.

This patch changes to not read next page upon reaching end, but
leave it to next dirent read.

Signed-off-by: Lai Siyao <lai.siyao@intel.com>
Change-Id: I28865d5719dfe95c0efba2f5543661a07aca6bd2
Reviewed-on: https://review.whamcloud.com/32180
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Fan Yong <fan.yong@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/lmv/lmv_obd.c