Whamcloud - gitweb
LU-1059 clio: to not try to discard freeing pages
authorJinshan Xiong <jinshan.xiong@whamcloud.com>
Tue, 31 Jan 2012 21:30:21 +0000 (13:30 -0800)
committerOleg Drokin <green@whamcloud.com>
Fri, 27 Jul 2012 23:08:38 +0000 (19:08 -0400)
commitf5f6890891a9c99d8ef80366fcfec58de4c111a5
tree530cac88d61d0e9e0dd62a9157d6eaa388a5753d
parent89ca6ce422fcc165d9d237528c65653e7802fe06
LU-1059 clio: to not try to discard freeing pages

This is a bug imported in LU-948. We should check if we have owned
the page successfully before trying to discard it.

Signed-off-by: Jinshan Xiong <jinshan.xiong@whamcloud.com>
Change-Id: I30631be98f1fcc1b98abe727c8c6984b918bfffd
Reviewed-on: http://review.whamcloud.com/2073
Reviewed-by: James Simmons <uja.ornl@gmail.com>
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_lock.c