]> git.baikalelectronics.ru Git - kernel.git/commit
locks: Allow disabling mandatory locking at compile time
authorJeff Layton <jeff.layton@primarydata.com>
Mon, 16 Nov 2015 14:49:34 +0000 (09:49 -0500)
committerJeff Layton <jeff.layton@primarydata.com>
Mon, 16 Nov 2015 14:49:34 +0000 (09:49 -0500)
commitd4d5c20e3aee027fd2c2266b682935129d218a96
tree3a349e8389f85f87c9c559f5e1860855694e6bae
parent837e0eb1c9d194f0eb3cf87d97b2235de146c9fe
locks: Allow disabling mandatory locking at compile time

Mandatory locking appears to be almost unused and buggy and there
appears no real interest in doing anything with it.  Since effectively
no one uses the code and since the code is buggy let's allow it to be
disabled at compile time.  I would just suggest removing the code but
undoubtedly that will break some piece of userspace code somewhere.

For the distributions that don't care about this piece of code
this gives a nice starting point to make mandatory locking go away.

Cc: Benjamin Coddington <bcodding@redhat.com>
Cc: Dmitry Vyukov <dvyukov@google.com>
Cc: Jeff Layton <jeff.layton@primarydata.com>
Cc: J. Bruce Fields <bfields@fieldses.org>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Jeff Layton <jeff.layton@primarydata.com>
fs/Kconfig
fs/locks.c
fs/namespace.c
include/linux/fs.h