[pnfs] [PATCH] free layout even if get error from server
Marc Eshel
eshel at almaden.ibm.com
Fri Sep 14 14:43:48 EDT 2007
From: Marc Eshel <eshel at almaden.ibm.com>
---
fs/nfs/pnfs.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/fs/nfs/pnfs.c b/fs/nfs/pnfs.c
index d7154b2..5d2be81 100644
--- a/fs/nfs/pnfs.c
+++ b/fs/nfs/pnfs.c
@@ -373,7 +373,7 @@ pnfs_return_layout(struct inode* ino, st
status = pnfs_return_layout_rpc(server, &arg);
- if (!status && nfsi->current_layout) {
+ if (nfsi->current_layout) {
dprintk ("%s: removing layout\n", __FUNCTION__);
server->pnfs_curr_ld->ld_io_ops->free_layout(&nfsi->current_layout, ino, &arg.lseg);
}
More information about the pNFS
mailing list