diff --git a/fs/nfs/inode.c b/fs/nfs/inode.c index 7de345fd8e1eafba543313854831ca9e1aa9034a..2fc237cd338e7ac61dcca3f4ca102029a83a2bf3 100644 --- a/fs/nfs/inode.c +++ b/fs/nfs/inode.c @@ -795,6 +795,8 @@ void nfs_close_context(struct nfs_open_context *ctx, int is_sync) if (!is_sync) return; inode = d_inode(ctx->dentry); + if (NFS_PROTO(inode)->have_delegation(inode, FMODE_READ)) + return; nfsi = NFS_I(inode); if (inode->i_mapping->nrpages == 0) return;