]> git.baikalelectronics.ru Git - kernel.git/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)
commitfe59fb986180cb8e9d8e7452d9e578eb16bfa2f7
tree7629a45968af72e96fa51814e5e1be52d08441ab
parent320b85115660f458cf55bf15a3fc21a7ea42f8e6
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