Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d1fa4a
)
Branch b1_8
author
bobijam
<bobijam>
Wed, 16 Sep 2009 11:18:20 +0000
(11:18 +0000)
committer
bobijam
<bobijam>
Wed, 16 Sep 2009 11:18:20 +0000
(11:18 +0000)
b=20560
o=johann
i=alex.zhuravlev
i=zhenyu.xu (bobijam)
Discard pages if somehting failed after filter_preprw_write().
lustre/obdfilter/filter_io_26.c
patch
|
blob
|
history
diff --git
a/lustre/obdfilter/filter_io_26.c
b/lustre/obdfilter/filter_io_26.c
index
6cd82ef
..
a927af4
100644
(file)
--- a/
lustre/obdfilter/filter_io_26.c
+++ b/
lustre/obdfilter/filter_io_26.c
@@
-799,6
+799,13
@@
cleanup:
if (lnb->page == NULL)
continue;
+ if (rc)
+ /* If the write has failed, the page cache may
+ * not be consitent with what is on disk, so
+ * force pages to be reread next time it is
+ * accessed */
+ ClearPageUptodate(lnb->page);
+
LASSERT(PageLocked(lnb->page));
unlock_page(lnb->page);