# Add lock_dlm to the build system.
diff -urN -p linux-2.6.9/fs/Kconfig linux/fs/Kconfig
--- linux-2.6.9/fs/Kconfig	2004-12-17 20:04:02.110388381 -0600
+++ linux/fs/Kconfig	2004-12-17 20:04:02.120386055 -0600
@@ -1796,6 +1796,12 @@ config LOCK_NOLOCK
 	help
 	  A "fake" lock module that allows GFS to run as a local filesystem.
 
+config LOCK_DLM
+	tristate "Lock DLM"
+	depends on LOCK_HARNESS
+	help
+	  A lock module that allows GFS to use a Distributed Lock Manager.
+
 endmenu
 
 menu "Partition Types"
diff -urN -p linux-2.6.9/fs/gfs_locking/Makefile linux/fs/gfs_locking/Makefile
--- linux-2.6.9/fs/gfs_locking/Makefile	2004-12-17 20:04:02.110388381 -0600
+++ linux/fs/gfs_locking/Makefile	2004-12-17 20:04:02.121385822 -0600
@@ -12,4 +12,5 @@
 
 obj-$(CONFIG_LOCK_HARNESS)	+= lock_harness/
 obj-$(CONFIG_LOCK_NOLOCK)	+= lock_nolock/
+obj-$(CONFIG_LOCK_DLM)		+= lock_dlm/
 
diff -urN -p linux-2.6.9/fs/gfs_locking/lock_dlm/Makefile linux/fs/gfs_locking/lock_dlm/Makefile
--- linux-2.6.9/fs/gfs_locking/lock_dlm/Makefile	1969-12-31 18:00:00.000000000 -0600
+++ linux/fs/gfs_locking/lock_dlm/Makefile	2004-12-17 20:04:02.121385822 -0600
@@ -0,0 +1,16 @@
+###############################################################################
+###############################################################################
+##
+##  Copyright (C) 2004 Red Hat, Inc.  All rights reserved.
+##
+##  This copyrighted material is made available to anyone wishing to use,
+##  modify, copy, or redistribute it subject to the terms and conditions
+##  of the GNU General Public License v.2.
+##
+###############################################################################
+###############################################################################
+
+obj-$(CONFIG_LOCK_DLM) += lock_dlm.o
+
+lock_dlm-y	:= main.o group.o lock.o mount.o thread.o plock.o
+
