Whamcloud - gitweb
LU-3274 osc: allow to call brw_commit() multiple times 15/8215/2
authorJinshan Xiong <jinshan.xiong@intel.com>
Fri, 8 Nov 2013 03:58:19 +0000 (19:58 -0800)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 10 Mar 2014 23:48:33 +0000 (23:48 +0000)
commitab391baa6c9f005b84454e1398ea1b8f77095615
tree0060e4e7b9e7980d18d02a15a244ea03f8ce8bd7
parent1601e8591c1334ee7879bb6daac09342caa4a542
LU-3274 osc: allow to call brw_commit() multiple times

Sometimes the rq_commit_cb of BRW RPC can be called twice if that RPC
has already committed at reply time. This will cause inaccuracy of
unstable pages accounting and then assertion.

Signed-off-by: Jinshan Xiong <jinshan.xiong@intel.com>
Change-Id: Ic596e1d44e2c27bf13701d2c6c9691562beb7e58
Reviewed-on: http://review.whamcloud.com/8215
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Prakash Surya <surya1@llnl.gov>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/osc/osc_cache.c
lustre/osc/osc_request.c