[pnfs] [PATCH 02/37] pnfs: fix bug when resuming layout_get after suspend in virtual_update_layout
Benny Halevy
bhalevy at panasas.com
Tue Jan 1 05:49:17 EST 2008
current code will return EIO first time after pnfs_layout_suspend expires.
Signed-off-by: Benny Halevy <bhalevy at panasas.com>
---
fs/nfs/pnfs.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/fs/nfs/pnfs.c b/fs/nfs/pnfs.c
index 0ace526..90e0a48 100644
--- a/fs/nfs/pnfs.c
+++ b/fs/nfs/pnfs.c
@@ -498,9 +498,10 @@ virtual_update_layout(struct inode *ino,
dprintk("%s: layout_get resumed\n", __FUNCTION__);
nfsi->pnfs_layout_state &= ~NFS_INO_LAYOUT_FAILED;
nfsi->pnfs_layout_suspend = 0;
- } else
+ } else {
result = 1;
- goto out;
+ goto out;
+ }
}
result = get_layout(ino, ctx, &arg, &res);
--
1.5.3.3
More information about the pNFS
mailing list