projects
/
unionfs-odf.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a3cf4f
)
Unionfs: prevent multiple writers to lower_page
author
Erez Zadok
<ezk@cs.sunysb.edu>
Sun, 25 Nov 2007 19:51:56 +0000
(14:51 -0500)
committer
Rachita Kothiyal
<rachita@dewey.fsl.cs.sunysb.edu>
Thu, 1 May 2008 23:03:23 +0000
(19:03 -0400)
Without this patch, the LTP fs test "rwtest04" triggers a
BUG_ON(PageWriteback(page)) in fs/buffer.c:1706.
CC: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
fs/unionfs/mmap.c
patch
|
blob
|
history
diff --git
a/fs/unionfs/mmap.c
b/fs/unionfs/mmap.c
index 623a91362ffd05674a0e27e8747b43adb806ffce..ea5ef3d590102749b1a6b57cfd0907efc0ade5fa 100644
(file)
--- a/
fs/unionfs/mmap.c
+++ b/
fs/unionfs/mmap.c
@@
-73,6
+73,7
@@
static int unionfs_writepage(struct page *page, struct writeback_control *wbc)
BUG_ON(!lower_mapping->a_ops->writepage);
clear_page_dirty_for_io(lower_page); /* emulate VFS behavior */
+ wait_on_page_writeback(lower_page); /* prevent multiple writers */
err = lower_mapping->a_ops->writepage(lower_page, wbc);
if (err < 0)
goto out_release;