9p: explicitly deny setlease attempts
authorJeff Layton <jlayton@kernel.org>
Tue, 19 Mar 2024 16:34:45 +0000 (12:34 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 May 2024 09:50:55 +0000 (11:50 +0200)
commitd6a15d3bb81c12a2e8f1373c0dbdbafeb55835c1
tree5d3c270cd6d9330c2244610da933b11759b3dee0
parent2b493bd0da9bfa6717b7e321ddebc24aa0248329
9p: explicitly deny setlease attempts

[ Upstream commit 7a84602297d36617dbdadeba55a2567031e5165b ]

9p is a remote network protocol, and it doesn't support asynchronous
notifications from the server. Ensure that we don't hand out any leases
since we can't guarantee they'll be broken when a file's contents
change.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Eric Van Hensbergen <ericvh@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/9p/vfs_file.c