projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d91969
)
NFS: Don't recoalesce on error in nfs_pageio_complete_mirror()
author
Trond Myklebust
<trond.myklebust@hammerspace.com>
Fri, 15 Feb 2019 21:08:25 +0000
(16:08 -0500)
committer
Trond Myklebust
<trond.myklebust@hammerspace.com>
Wed, 20 Feb 2019 20:14:20 +0000
(15:14 -0500)
If the I/O completion failed with a fatal error, then we should just
exit nfs_pageio_complete_mirror() rather than try to recoalesce.
Fixes:
a7d42ddb3099
("nfs: add mirroring support to pgio layer")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Cc: stable@vger.kernel.org # v4.0+
fs/nfs/pagelist.c
patch
|
blob
|
history
diff --git
a/fs/nfs/pagelist.c
b/fs/nfs/pagelist.c
index
03bde9a
..
a8951f1
100644
(file)
--- a/
fs/nfs/pagelist.c
+++ b/
fs/nfs/pagelist.c
@@
-1209,7
+1209,7
@@
static void nfs_pageio_complete_mirror(struct nfs_pageio_descriptor *desc,
desc->pg_mirror_idx = mirror_idx;
for (;;) {
nfs_pageio_doio(desc);
- if (!mirror->pg_recoalesce)
+ if (
desc->pg_error < 0 ||
!mirror->pg_recoalesce)
break;
if (!nfs_do_recoalesce(desc))
break;