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:
368a063
)
b=2726: make sure that we properly balance page locking in the case of a failed
author
shaver
<shaver>
Sun, 15 Feb 2004 05:03:03 +0000
(
05:03
+0000)
committer
shaver
<shaver>
Sun, 15 Feb 2004 05:03:03 +0000
(
05:03
+0000)
writepage.
patch=zab
lustre/llite/file.c
patch
|
blob
|
history
diff --git
a/lustre/llite/file.c
b/lustre/llite/file.c
index
6c76e87
..
85e5cdc
100644
(file)
--- a/
lustre/llite/file.c
+++ b/
lustre/llite/file.c
@@
-355,12
+355,12
@@
void ll_pgcache_remove_extent(struct inode *inode, struct lov_stripe_md *lsm,
#else
rc = inode->i_mapping->a_ops->writepage(page, NULL);
#endif
- if (rc != 0)
{
+ if (rc != 0)
CERROR("writepage of page %p failed: %d\n",
page, rc);
- } else {
-
lock_page(page); /* wait for io to complete
*/
- }
+ /* either waiting for io to complete or reacquiring
+
* the lock that the failed writepage released
*/
+ lock_page(page);
}
/* checking again to account for writeback's lock_page() */