Whamcloud - gitweb
LU-753 obdfilter: improper LASSERT in filter_commitrw_write()
authorNiu Yawei <niu@whamcloud.com>
Sat, 22 Oct 2011 08:16:55 +0000 (16:16 +0800)
committerOleg Drokin <green@whamcloud.com>
Mon, 9 Jan 2012 19:31:57 +0000 (14:31 -0500)
commita6c1c3ac7e53b3b733331aa65c19191c7da3f578
tree4ceb2c1141feb462db4806eb689ee2296c6b6cd2
parent36635b968772e0ada366fffbf13e8d847fa1139d
LU-753 obdfilter: improper LASSERT in filter_commitrw_write()

In rare cases fsfilt_commit_wait() will wake up and return after the
transaction has finished its work and updated j_commit_sequence but
the commit callbacks have not been run yet. Which will trigger the
LASSERT(oti->oti_transno <= obd->obd_last_committed) improperly.

We should just wait for the commit callback finished instead of put
an improper LASSERT here.

Signed-off-by: Niu Yawei <niu@whamcloud.com>
Change-Id: Ibd5add8d352d2e7598be49b0bf8fa37d40ce6e1f
Reviewed-on: http://review.whamcloud.com/1583
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Hudson
Reviewed-by: Jinshan Xiong <jay@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/obdfilter/filter_io_26.c