Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6de5bd12 authored by Arnd Bergmann's avatar Arnd Bergmann
Browse files

BKL: introduce CONFIG_BKL.



With all the patches we have queued in the BKL removal tree, only a
few dozen modules are left that actually rely on the BKL, and even
there are lots of low-hanging fruit. We need to decide what to do
about them, this patch illustrates one of the options:

Every user of the BKL is marked as 'depends on BKL' in Kconfig,
and the CONFIG_BKL becomes a user-visible option. If it gets
disabled, no BKL using module can be built any more and the BKL
code itself is compiled out.

The one exception is file locking, which is practically always
enabled and does a 'select BKL' instead. This effectively forces
CONFIG_BKL to be enabled until we have solved the fs/lockd
mess and can apply the patch that removes the BKL from fs/locks.c.

Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
parent 7ff52efd
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -73,7 +73,8 @@ source "drivers/gpu/drm/radeon/Kconfig"

config DRM_I810
	tristate "Intel I810"
	depends on DRM && AGP && AGP_INTEL
	# BKL usage in order to avoid AB-BA deadlocks, may become BROKEN_ON_SMP
	depends on DRM && AGP && AGP_INTEL && BKL
	help
	  Choose this option if you have an Intel I810 graphics card.  If M is
	  selected, the module will be called i810.  AGP support is required
@@ -86,6 +87,8 @@ choice

config DRM_I830
	tristate "i830 driver"
	# BKL usage in order to avoid AB-BA deadlocks, i830 may get removed
	depends on BKL
	help
	  Choose this option if you have a system that has Intel 830M, 845G,
	  852GM, 855GM or 865G integrated graphics.  If M is selected, the
+1 −0
Original line number Diff line number Diff line
@@ -19,6 +19,7 @@ comment "Multimedia core support"

config VIDEO_DEV
	tristate "Video For Linux"
	depends on BKL # used in many drivers for ioctl handling, need to kill
	---help---
	  V4L core support for video capture and overlay devices, webcams and
	  AM/FM radio cards.
+1 −0
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@
#
config ATALK
	tristate "Appletalk protocol support"
	depends on BKL # waiting to be removed from net/appletalk/ddp.c
	select LLC
	---help---
	  AppleTalk is the protocol that Apple computers can use to communicate
+1 −0
Original line number Diff line number Diff line
config VIDEO_CX25821
	tristate "Conexant cx25821 support"
	depends on DVB_CORE && VIDEO_DEV && PCI && I2C && INPUT
	depends on BKL # please fix
	select I2C_ALGOBIT
	select VIDEO_BTCX
	select VIDEO_TVEEPROM
+1 −0
Original line number Diff line number Diff line
config EASYCAP
	tristate "EasyCAP USB ID 05e1:0408 support"
	depends on USB && VIDEO_DEV
	depends on BKL # please fix

	---help---
	  This is an integrated audio/video driver for EasyCAP cards with
Loading