]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Sep 2022 09:11:57 +0000 (11:11 +0200)
commit27bf7a5d11987dae35651b478e6f7f2c276b9dc4
tree598e5cf16e80ba63dbf4628c16fd4ad95bcf6dd8
parent21b0301f2234112fbe5cfc1e13968f0a12f0f2d2
NFSv4: Fixes for nfs4_inode_return_delegation()

commit 6e176d47160cec8bcaa28d9aa06926d72d54237c upstream.

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>
Cc: Thorsten Leemhuis <regressions@leemhuis.info>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfs/delegation.c