Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LU-4300 ldlm: ELC picks locks in a safer policy
[fs/lustre-release.git]
/
lustre
/
osc
/
osc_lock.c
diff --git
a/lustre/osc/osc_lock.c
b/lustre/osc/osc_lock.c
index
749b970
..
3422d54
100644
(file)
--- a/
lustre/osc/osc_lock.c
+++ b/
lustre/osc/osc_lock.c
@@
-908,7
+908,11
@@
static int weigh_cb(const struct lu_env *env, struct cl_io *io,
{
struct cl_page *page = ops->ops_cl.cpl_page;
- if (cl_page_is_vmlocked(env, page)) {
+ if (cl_page_is_vmlocked(env, page)
+#if defined(__KERNEL__)
+ || PageDirty(page->cp_vmpage) || PageWriteback(page->cp_vmpage)
+#endif
+ ) {
(*(unsigned long *)cbdata)++;
return CLP_GANG_ABORT;
}