Whamcloud - gitweb
LU-1650 obdclass: find the lock by index of subpage
authorJinshan Xiong <jinshan.xiong@intel.com>
Mon, 26 Nov 2012 20:04:31 +0000 (12:04 -0800)
committerOleg Drokin <green@whamcloud.com>
Wed, 5 Dec 2012 02:34:42 +0000 (21:34 -0500)
commit454d7f9c3358b4f86d04c63dcb6d445c2e4f40ad
tree8a94ff9f1e19fc98a97be5a0c257923a41d6a18c
parente9534e98ed0e658cc2c4e72848c5892ebdd50645
LU-1650 obdclass: find the lock by index of subpage

In check_and_discard_cb(), subpage's index should be used to find if
there exists another lock to cover the same page.

Signed-off-by: Jinshan Xiong <jinshan.xiong@intel.com>
Change-Id: Id8e1da89ef81fad4c7917360d591fc7bd1309a00
Reviewed-on: http://review.whamcloud.com/4698
Tested-by: Hudson
Reviewed-by: Bobi Jam <bobijam@whamcloud.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Johann Lombardi <johann.lombardi@intel.com>
lustre/include/cl_object.h
lustre/obdclass/cl_lock.c