Whamcloud - gitweb
LU-2170 osc: set osc_lock attribute only once
authorJinshan <jinshan.xiong@intel.com>
Fri, 19 Oct 2012 16:28:00 +0000 (12:28 -0400)
committerOleg Drokin <green@whamcloud.com>
Tue, 6 Nov 2012 17:30:11 +0000 (12:30 -0500)
commite482463ea5d52e696f772ab581650659ac2ab096
tree675f69a127079980925db896e19886cdac70059a
parent6c3606b79a4c25946255a680f79ff2d58df66bbc
LU-2170 osc: set osc_lock attribute only once

Set osc_lock's attribute by lock allocator, otherwise if this lock is
matched and enqueued by a glimpse thread, the osc_lock's ols_glimpse
will be set to true and the lock state will be messed in
osc_lock_upcall().

Signed-off-by: Jinshan Xiong <jinshan.xiong@intel.com>
Change-Id: Ib8492fa159a43dad11febe5a01f8c4ef72b8c4f3
Reviewed-on: http://review.whamcloud.com/4316
Tested-by: Hudson
Reviewed-by: Fan Yong <yong.fan@whamcloud.com>
Reviewed-by: Niu Yawei <niu@whamcloud.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/lov/lov_lock.c
lustre/osc/osc_lock.c
lustre/osc/osc_page.c