]> git.itanic.dy.fi Git - linux-stable/commit
NFSv4: Fixes for nfs4_inode_return_delegation()
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Sun, 10 Oct 2021 08:58:12 +0000 (10:58 +0200)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Wed, 20 Oct 2021 22:09:53 +0000 (18:09 -0400)
commit6e176d47160cec8bcaa28d9aa06926d72d54237c
tree7629a45968af72e96fa51814e5e1be52d08441ab
parentf0caea8882a7412a2ad4d8274f0280cdf849c9e2
NFSv4: Fixes for nfs4_inode_return_delegation()

We mustn't call nfs_wb_all() on anything other than a regular file.
Furthermore, we can exit early when we don't hold a delegation.

Reported-by: David Wysochanski <dwysocha@redhat.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/delegation.c