From: Andy Adamson Date: Wed, 20 Jun 2012 19:03:32 +0000 (-0400) Subject: NFSv4.1 don't send LAYOUTCOMMIT if data resent through MDS X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=baf6c2a44af02cf6f7cec1ff177189c78fc30f9a;p=linux-beck.git NFSv4.1 don't send LAYOUTCOMMIT if data resent through MDS Signed-off-by: Andy Adamson Signed-off-by: Trond Myklebust --- 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, dprintk("%s DS connection error %d\n", __func__, task->tk_status); filelayout_mark_devid_invalid(devid); + clear_bit(NFS_INO_LAYOUTCOMMIT, &NFS_I(inode)->flags); _pnfs_return_layout(inode); rpc_wake_up(&tbl->slot_tbl_waitq); nfs4_ds_disconnect(clp);