@@ -266,11 +266,16 @@ static int filelayout_read_done_cb(struct rpc_task *task,
struct nfs_pgio_header *hdr = wdata->header;
if (FILELAYOUT_LSEG(hdr->lseg)->commit_through_mds ||
- wdata->res.verf->committed == NFS_FILE_SYNC)
+ wdata->res.verf->committed == NFS_FILE_SYNC) {
+ dprintk("%s inode %lu commit_through_mds %d committed %d\n",
+ __func__, hdr->inode->i_ino,
+ FILELAYOUT_LSEG(hdr->lseg)->commit_through_mds != 0,
+ wdata->res.verf->committed == NFS_FILE_SYNC);
return;
+ }
pnfs_set_layoutcommit(wdata);
- dprintk("%s ionde %lu pls_end_pos %lu\n", __func__, hdr->inode->i_ino,
+ dprintk("%s inode %lu pls_end_pos %lu\n", __func__, hdr->inode->i_ino,
(unsigned long) NFS_I(hdr->inode)->layout->plh_lwb);
}
Signed-off-by: Benny Halevy <bhalevy@tonian.com> --- fs/nfs/nfs4filelayout.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)