diff options
author | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2021-10-19 09:04:16 +0100 |
---|---|---|
committer | Jeff Layton <jlayton@kernel.org> | 2021-10-19 06:48:21 -0400 |
commit | f7c9ee0c72e9937b09dfede0d2336cb963e80259 (patch) | |
tree | c643a3c5bf43cae0c8842e1e78d9f7f1dce6bd7f /Documentation/filesystems | |
parent | ec60f38a917867817b836f4de050e49954fc2d7c (diff) | |
download | linux-stable-f7c9ee0c72e9937b09dfede0d2336cb963e80259.tar.gz linux-stable-f7c9ee0c72e9937b09dfede0d2336cb963e80259.tar.bz2 linux-stable-f7c9ee0c72e9937b09dfede0d2336cb963e80259.zip |
docs: fs: locks.rst: update comment about mandatory file locking
The mandatory file locking got removed due to its problems, but
the fs locks documentation still points to it.
Update the text there, informing that it was removed on Kernel
5.14.
Fixes: f7e33bdbd6d1 ("fs: remove mandatory file locking support")
Reported-by: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Diffstat (limited to 'Documentation/filesystems')
-rw-r--r-- | Documentation/filesystems/locks.rst | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/Documentation/filesystems/locks.rst b/Documentation/filesystems/locks.rst index c5ae858b1aac..26429317dbbc 100644 --- a/Documentation/filesystems/locks.rst +++ b/Documentation/filesystems/locks.rst @@ -57,16 +57,9 @@ fcntl(), with all the problems that implies. 1.3 Mandatory Locking As A Mount Option --------------------------------------- -Mandatory locking, as described in -'Documentation/filesystems/mandatory-locking.rst' was prior to this release a -general configuration option that was valid for all mounted filesystems. This -had a number of inherent dangers, not the least of which was the ability to -freeze an NFS server by asking it to read a file for which a mandatory lock -existed. - -From this release of the kernel, mandatory locking can be turned on and off -on a per-filesystem basis, using the mount options 'mand' and 'nomand'. -The default is to disallow mandatory locking. The intention is that -mandatory locking only be enabled on a local filesystem as the specific need -arises. +Mandatory locking was prior to this release a general configuration option +that was valid for all mounted filesystems. This had a number of inherent +dangers, not the least of which was the ability to freeze an NFS server by +asking it to read a file for which a mandatory lock existed. +Such option was dropped in Kernel v5.14. |