Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Mauro Carvalho Chehab and committed by
Jeff Layton
f7c9ee0c ec60f38a

+5 -12
+5 -12
Documentation/filesystems/locks.rst
··· 57 57 1.3 Mandatory Locking As A Mount Option 58 58 --------------------------------------- 59 59 60 - Mandatory locking, as described in 61 - 'Documentation/filesystems/mandatory-locking.rst' was prior to this release a 62 - general configuration option that was valid for all mounted filesystems. This 63 - had a number of inherent dangers, not the least of which was the ability to 64 - freeze an NFS server by asking it to read a file for which a mandatory lock 65 - existed. 60 + Mandatory locking was prior to this release a general configuration option 61 + that was valid for all mounted filesystems. This had a number of inherent 62 + dangers, not the least of which was the ability to freeze an NFS server by 63 + asking it to read a file for which a mandatory lock existed. 66 64 67 - From this release of the kernel, mandatory locking can be turned on and off 68 - on a per-filesystem basis, using the mount options 'mand' and 'nomand'. 69 - The default is to disallow mandatory locking. The intention is that 70 - mandatory locking only be enabled on a local filesystem as the specific need 71 - arises. 72 - 65 + Such option was dropped in Kernel v5.14.