Whamcloud - gitweb
LU-1421 clio: check cp_owner of cl_page after the page is owned
authorJinshan Xiong <jinshan.xiong@whamcloud.com>
Tue, 5 Jun 2012 04:32:02 +0000 (21:32 -0700)
committerOleg Drokin <green@whamcloud.com>
Wed, 13 Jun 2012 21:18:59 +0000 (17:18 -0400)
commitf52eb69075e6757104c77766d1d67c028a4e3506
tree90b00a31a9018e88c96ad35e3cfbe37f458b0102
parentcdaeb287ec52b54aab62ff465518c9d98ee3736b
LU-1421 clio: check cp_owner of cl_page after the page is owned

After page writeback is supported in clio, there exists a short
period that page is unlocked but cp_owner is set. This confuses
the assertion of cl_page_assume(). This problem can be fixed by
checking cp_owner after the page is owned.

Signed-off-by: Jinshan Xiong <jinshan.xiong@whamcloud.com>
Change-Id: Iafcdbb9b0dbb5f081a84c1da1b7ad8051d406988
Reviewed-on: http://review.whamcloud.com/3027
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Niu Yawei <niu@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/obdclass/cl_page.c