aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Adamson <andros@netapp.com>2012-06-20 15:03:32 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2012-07-16 14:37:00 -0400
commitbaf6c2a44af02cf6f7cec1ff177189c78fc30f9a (patch)
tree382cd1db99147f3b3b29b044bac27d9a8dde1c98
parent82c7c7a5a9270b13380a588dc57b7541a5e4f541 (diff)
NFSv4.1 don't send LAYOUTCOMMIT if data resent through MDS
Signed-off-by: Andy Adamson <andros@netapp.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
-rw-r--r--fs/nfs/nfs4filelayout.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfs/nfs4filelayout.c b/fs/nfs/nfs4filelayout.c
index 26b96de831ea..53f94d915bd1 100644
--- a/fs/nfs/nfs4filelayout.c
+++ b/fs/nfs/nfs4filelayout.c
@@ -206,6 +206,7 @@ static int filelayout_async_handle_error(struct rpc_task *task,
206 dprintk("%s DS connection error %d\n", __func__, 206 dprintk("%s DS connection error %d\n", __func__,
207 task->tk_status); 207 task->tk_status);
208 filelayout_mark_devid_invalid(devid); 208 filelayout_mark_devid_invalid(devid);
209 clear_bit(NFS_INO_LAYOUTCOMMIT, &NFS_I(inode)->flags);
209 _pnfs_return_layout(inode); 210 _pnfs_return_layout(inode);
210 rpc_wake_up(&tbl->slot_tbl_waitq); 211 rpc_wake_up(&tbl->slot_tbl_waitq);
211 nfs4_ds_disconnect(clp); 212 nfs4_ds_disconnect(clp);