[pnfs] CVS: nfsv4
Benny Halevy Panasas
bhalevy at citi.umich.edu
Tue Dec 26 06:46:38 EST 2006
CVSROOT: /cvs
Module name: nfsv4
Changes by: bhalevy at citi. 2006/12/26 06:46:38
Modified files:
cvs/pnfs/fs/nfs: pnfs.c
Log message:
Mark pnfs_layout_state with NFS_INO_LAYOUT_FAILED only in an
error happened.
Signed-off-by: Benny Halevy <bhalevy at panasas.com>
Index: fs/nfs/pnfs.c
===================================================================
RCS file: /cvs/nfsv4/cvs/pnfs/fs/nfs/pnfs.c,v
retrieving revision 1.51
diff -u -p -r1.51 pnfs.c
--- fs/nfs/pnfs.c 25 Dec 2006 00:01:58 -0000 1.51
+++ fs/nfs/pnfs.c 26 Dec 2006 11:45:29 -0000
@@ -474,8 +474,9 @@ virtual_update_layout(struct inode* ino,
result = 0;
out:
- /* remember that get layout failed and don't try again */
- nfsi->pnfs_layout_state |= NFS_INO_LAYOUT_FAILED;
+ /* remember that get layout failed and don't try again */
+ if (result)
+ nfsi->pnfs_layout_state |= NFS_INO_LAYOUT_FAILED;
/* res.layout.buf kalloc'ed by the xdr decoder? */
if (res.layout.buf)
More information about the pNFS
mailing list