* [Cluster-devel] linux-next: Tree for May 8 (dlm) [not found] <20130508140122.e4747b58be4333060b7a248a@canb.auug.org.au> @ 2013-05-08 18:04 ` Randy Dunlap 2013-05-08 23:47 ` Stephen Rothwell 0 siblings, 1 reply; 10+ messages in thread From: Randy Dunlap @ 2013-05-08 18:04 UTC (permalink / raw) To: cluster-devel.redhat.com On 05/07/13 21:01, Stephen Rothwell wrote: > Hi all, > > Please do not add any v3.11 destined work to your linux-next included > branches until after v3.10-rc1 is released. > > I am receiving a (un)reasonable number of conflicts from there being > multiple copies of some commits in various trees. Please clean this up > and resist the temptataion to rebase your trees on the way to your > upstream ... > > Changes since 20130506: > > <crickets :-)> > on x86_64: when CONFIG_GFS2_FS_LOCKING_DLM=y and CONFIG_DLM=m: fs/built-in.o: In function `gfs2_lock': file.c:(.text+0xa512c): undefined reference to `dlm_posix_get' file.c:(.text+0xa5140): undefined reference to `dlm_posix_unlock' file.c:(.text+0xa514a): undefined reference to `dlm_posix_lock' fs/built-in.o: In function `gdlm_cancel': lock_dlm.c:(.text+0xb3f57): undefined reference to `dlm_unlock' fs/built-in.o: In function `gdlm_unmount': lock_dlm.c:(.text+0xb40ff): undefined reference to `dlm_release_lockspace' fs/built-in.o: In function `sync_unlock.isra.4': lock_dlm.c:(.text+0xb420d): undefined reference to `dlm_unlock' fs/built-in.o: In function `sync_lock.isra.5': lock_dlm.c:(.text+0xb42d9): undefined reference to `dlm_lock' fs/built-in.o: In function `gdlm_put_lock': lock_dlm.c:(.text+0xb45e7): undefined reference to `dlm_unlock' fs/built-in.o: In function `gdlm_mount': lock_dlm.c:(.text+0xb4928): undefined reference to `dlm_new_lockspace' lock_dlm.c:(.text+0xb4c75): undefined reference to `dlm_release_lockspace' fs/built-in.o: In function `gdlm_lock': lock_dlm.c:(.text+0xb529f): undefined reference to `dlm_lock' -- ~Randy ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Cluster-devel] linux-next: Tree for May 8 (dlm) 2013-05-08 18:04 ` [Cluster-devel] linux-next: Tree for May 8 (dlm) Randy Dunlap @ 2013-05-08 23:47 ` Stephen Rothwell 2013-05-09 16:50 ` David Teigland 0 siblings, 1 reply; 10+ messages in thread From: Stephen Rothwell @ 2013-05-08 23:47 UTC (permalink / raw) To: cluster-devel.redhat.com [Just forwarding to David ...] On Wed, 08 May 2013 11:04:45 -0700 Randy Dunlap <rdunlap@infradead.org> wrote: > > on x86_64: > > when CONFIG_GFS2_FS_LOCKING_DLM=y and CONFIG_DLM=m: > > fs/built-in.o: In function `gfs2_lock': > file.c:(.text+0xa512c): undefined reference to `dlm_posix_get' > file.c:(.text+0xa5140): undefined reference to `dlm_posix_unlock' > file.c:(.text+0xa514a): undefined reference to `dlm_posix_lock' > fs/built-in.o: In function `gdlm_cancel': > lock_dlm.c:(.text+0xb3f57): undefined reference to `dlm_unlock' > fs/built-in.o: In function `gdlm_unmount': > lock_dlm.c:(.text+0xb40ff): undefined reference to `dlm_release_lockspace' > fs/built-in.o: In function `sync_unlock.isra.4': > lock_dlm.c:(.text+0xb420d): undefined reference to `dlm_unlock' > fs/built-in.o: In function `sync_lock.isra.5': > lock_dlm.c:(.text+0xb42d9): undefined reference to `dlm_lock' > fs/built-in.o: In function `gdlm_put_lock': > lock_dlm.c:(.text+0xb45e7): undefined reference to `dlm_unlock' > fs/built-in.o: In function `gdlm_mount': > lock_dlm.c:(.text+0xb4928): undefined reference to `dlm_new_lockspace' > lock_dlm.c:(.text+0xb4c75): undefined reference to `dlm_release_lockspace' > fs/built-in.o: In function `gdlm_lock': > lock_dlm.c:(.text+0xb529f): undefined reference to `dlm_lock' -- Cheers, Stephen Rothwell sfr at canb.auug.org.au -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: not available URL: <http://listman.redhat.com/archives/cluster-devel/attachments/20130509/f7563f69/attachment.sig> ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Cluster-devel] linux-next: Tree for May 8 (dlm) 2013-05-08 23:47 ` Stephen Rothwell @ 2013-05-09 16:50 ` David Teigland 2013-05-09 17:08 ` Randy Dunlap 0 siblings, 1 reply; 10+ messages in thread From: David Teigland @ 2013-05-09 16:50 UTC (permalink / raw) To: cluster-devel.redhat.com On Thu, May 09, 2013 at 09:47:45AM +1000, Stephen Rothwell wrote: > [Just forwarding to David ...] > > On Wed, 08 May 2013 11:04:45 -0700 Randy Dunlap <rdunlap@infradead.org> wrote: > > > > on x86_64: > > > > when CONFIG_GFS2_FS_LOCKING_DLM=y and CONFIG_DLM=m: > > > > fs/built-in.o: In function `gfs2_lock': > > file.c:(.text+0xa512c): undefined reference to `dlm_posix_get' > > file.c:(.text+0xa5140): undefined reference to `dlm_posix_unlock' > > file.c:(.text+0xa514a): undefined reference to `dlm_posix_lock' gfs2/file.c calls the dlm directly, so I suppose gfs2 itself needs to depend on the dlm. It's been like this for a long time, so I don't know why it only appeared now. > > fs/built-in.o: In function `gdlm_cancel': > > lock_dlm.c:(.text+0xb3f57): undefined reference to `dlm_unlock' > > fs/built-in.o: In function `gdlm_unmount': > > lock_dlm.c:(.text+0xb40ff): undefined reference to `dlm_release_lockspace' > > fs/built-in.o: In function `sync_unlock.isra.4': > > lock_dlm.c:(.text+0xb420d): undefined reference to `dlm_unlock' > > fs/built-in.o: In function `sync_lock.isra.5': > > lock_dlm.c:(.text+0xb42d9): undefined reference to `dlm_lock' > > fs/built-in.o: In function `gdlm_put_lock': > > lock_dlm.c:(.text+0xb45e7): undefined reference to `dlm_unlock' > > fs/built-in.o: In function `gdlm_mount': > > lock_dlm.c:(.text+0xb4928): undefined reference to `dlm_new_lockspace' > > lock_dlm.c:(.text+0xb4c75): undefined reference to `dlm_release_lockspace' > > fs/built-in.o: In function `gdlm_lock': > > lock_dlm.c:(.text+0xb529f): undefined reference to `dlm_lock' lock_dlm.c is GFS2_FS_LOCKING_DLM which depends on DLM. Is that not correct? Dave ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Cluster-devel] linux-next: Tree for May 8 (dlm) 2013-05-09 16:50 ` David Teigland @ 2013-05-09 17:08 ` Randy Dunlap 2013-05-13 9:18 ` Steven Whitehouse 0 siblings, 1 reply; 10+ messages in thread From: Randy Dunlap @ 2013-05-09 17:08 UTC (permalink / raw) To: cluster-devel.redhat.com On 05/09/13 09:50, David Teigland wrote: > On Thu, May 09, 2013 at 09:47:45AM +1000, Stephen Rothwell wrote: >> [Just forwarding to David ...] >> >> On Wed, 08 May 2013 11:04:45 -0700 Randy Dunlap <rdunlap@infradead.org> wrote: >>> >>> on x86_64: >>> >>> when CONFIG_GFS2_FS_LOCKING_DLM=y and CONFIG_DLM=m: >>> >>> fs/built-in.o: In function `gfs2_lock': >>> file.c:(.text+0xa512c): undefined reference to `dlm_posix_get' >>> file.c:(.text+0xa5140): undefined reference to `dlm_posix_unlock' >>> file.c:(.text+0xa514a): undefined reference to `dlm_posix_lock' > > gfs2/file.c calls the dlm directly, so I suppose gfs2 itself needs > to depend on the dlm. It's been like this for a long time, so I > don't know why it only appeared now. Agreed to both statements. >>> fs/built-in.o: In function `gdlm_cancel': >>> lock_dlm.c:(.text+0xb3f57): undefined reference to `dlm_unlock' >>> fs/built-in.o: In function `gdlm_unmount': >>> lock_dlm.c:(.text+0xb40ff): undefined reference to `dlm_release_lockspace' >>> fs/built-in.o: In function `sync_unlock.isra.4': >>> lock_dlm.c:(.text+0xb420d): undefined reference to `dlm_unlock' >>> fs/built-in.o: In function `sync_lock.isra.5': >>> lock_dlm.c:(.text+0xb42d9): undefined reference to `dlm_lock' >>> fs/built-in.o: In function `gdlm_put_lock': >>> lock_dlm.c:(.text+0xb45e7): undefined reference to `dlm_unlock' >>> fs/built-in.o: In function `gdlm_mount': >>> lock_dlm.c:(.text+0xb4928): undefined reference to `dlm_new_lockspace' >>> lock_dlm.c:(.text+0xb4c75): undefined reference to `dlm_release_lockspace' >>> fs/built-in.o: In function `gdlm_lock': >>> lock_dlm.c:(.text+0xb529f): undefined reference to `dlm_lock' > > lock_dlm.c is GFS2_FS_LOCKING_DLM which depends on DLM. > Is that not correct? The problem is that GFS2_FS_LOCKING_DLM is a bool. It depends on DLM, which is a tristate with a value of 'm', so the bool is true (as long as DLM != 'n'). One option is to make GFS2_FS_LOCKING_DLM depend on "DLM != n", but a better fix is to make GFS2_FS depend on DLM, like you said above. -- ~Randy ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Cluster-devel] linux-next: Tree for May 8 (dlm) 2013-05-09 17:08 ` Randy Dunlap @ 2013-05-13 9:18 ` Steven Whitehouse 2013-05-13 16:30 ` Randy Dunlap 0 siblings, 1 reply; 10+ messages in thread From: Steven Whitehouse @ 2013-05-13 9:18 UTC (permalink / raw) To: cluster-devel.redhat.com Hi, On Thu, 2013-05-09 at 10:08 -0700, Randy Dunlap wrote: > On 05/09/13 09:50, David Teigland wrote: > > On Thu, May 09, 2013 at 09:47:45AM +1000, Stephen Rothwell wrote: > >> [Just forwarding to David ...] > >> > >> On Wed, 08 May 2013 11:04:45 -0700 Randy Dunlap <rdunlap@infradead.org> wrote: > >>> > >>> on x86_64: > >>> > >>> when CONFIG_GFS2_FS_LOCKING_DLM=y and CONFIG_DLM=m: > >>> > >>> fs/built-in.o: In function `gfs2_lock': > >>> file.c:(.text+0xa512c): undefined reference to `dlm_posix_get' > >>> file.c:(.text+0xa5140): undefined reference to `dlm_posix_unlock' > >>> file.c:(.text+0xa514a): undefined reference to `dlm_posix_lock' > > > > gfs2/file.c calls the dlm directly, so I suppose gfs2 itself needs > > to depend on the dlm. It's been like this for a long time, so I > > don't know why it only appeared now. > > Agreed to both statements. > > >>> fs/built-in.o: In function `gdlm_cancel': > >>> lock_dlm.c:(.text+0xb3f57): undefined reference to `dlm_unlock' > >>> fs/built-in.o: In function `gdlm_unmount': > >>> lock_dlm.c:(.text+0xb40ff): undefined reference to `dlm_release_lockspace' > >>> fs/built-in.o: In function `sync_unlock.isra.4': > >>> lock_dlm.c:(.text+0xb420d): undefined reference to `dlm_unlock' > >>> fs/built-in.o: In function `sync_lock.isra.5': > >>> lock_dlm.c:(.text+0xb42d9): undefined reference to `dlm_lock' > >>> fs/built-in.o: In function `gdlm_put_lock': > >>> lock_dlm.c:(.text+0xb45e7): undefined reference to `dlm_unlock' > >>> fs/built-in.o: In function `gdlm_mount': > >>> lock_dlm.c:(.text+0xb4928): undefined reference to `dlm_new_lockspace' > >>> lock_dlm.c:(.text+0xb4c75): undefined reference to `dlm_release_lockspace' > >>> fs/built-in.o: In function `gdlm_lock': > >>> lock_dlm.c:(.text+0xb529f): undefined reference to `dlm_lock' > > > > lock_dlm.c is GFS2_FS_LOCKING_DLM which depends on DLM. > > Is that not correct? > > The problem is that GFS2_FS_LOCKING_DLM is a bool. It depends on DLM, > which is a tristate with a value of 'm', so the bool is true (as long > as DLM != 'n'). > > One option is to make GFS2_FS_LOCKING_DLM depend on "DLM != n", but a > better fix is to make GFS2_FS depend on DLM, like you said above. > > Does this look correct? As Dave says this has not changed for some time. It seems that every time we try to get this right, there is always some corner case that is missed :( We can't make GFS2_FS depend on DLM as otherwise there would be no reason to have GFS2_FS_LOCKING_DLM, at least if I've understood the issue here correctly. So I've come up with the following... does it look ok? diff --git a/fs/gfs2/Kconfig b/fs/gfs2/Kconfig index eb08c9e..edbad96 100644 --- a/fs/gfs2/Kconfig +++ b/fs/gfs2/Kconfig @@ -26,7 +26,7 @@ config GFS2_FS config GFS2_FS_LOCKING_DLM bool "GFS2 DLM locking" depends on (GFS2_FS!=n) && NET && INET && (IPV6 || IPV6=n) && \ - HOTPLUG && DLM && CONFIGFS_FS && SYSFS + HOTPLUG && (DLM!=n) && CONFIGFS_FS && SYSFS help Multiple node locking module for GFS2 ^ permalink raw reply related [flat|nested] 10+ messages in thread
* [Cluster-devel] linux-next: Tree for May 8 (dlm) 2013-05-13 9:18 ` Steven Whitehouse @ 2013-05-13 16:30 ` Randy Dunlap [not found] ` <51913F8B.7080201@infradead.org> 0 siblings, 1 reply; 10+ messages in thread From: Randy Dunlap @ 2013-05-13 16:30 UTC (permalink / raw) To: cluster-devel.redhat.com On 05/13/13 02:18, Steven Whitehouse wrote: > Hi, > > On Thu, 2013-05-09 at 10:08 -0700, Randy Dunlap wrote: >> On 05/09/13 09:50, David Teigland wrote: >>> On Thu, May 09, 2013 at 09:47:45AM +1000, Stephen Rothwell wrote: >>>> [Just forwarding to David ...] >>>> >>>> On Wed, 08 May 2013 11:04:45 -0700 Randy Dunlap <rdunlap@infradead.org> wrote: >>>>> >>>>> on x86_64: >>>>> >>>>> when CONFIG_GFS2_FS_LOCKING_DLM=y and CONFIG_DLM=m: >>>>> >>>>> fs/built-in.o: In function `gfs2_lock': >>>>> file.c:(.text+0xa512c): undefined reference to `dlm_posix_get' >>>>> file.c:(.text+0xa5140): undefined reference to `dlm_posix_unlock' >>>>> file.c:(.text+0xa514a): undefined reference to `dlm_posix_lock' >>> >>> gfs2/file.c calls the dlm directly, so I suppose gfs2 itself needs >>> to depend on the dlm. It's been like this for a long time, so I >>> don't know why it only appeared now. >> >> Agreed to both statements. >> >>>>> fs/built-in.o: In function `gdlm_cancel': >>>>> lock_dlm.c:(.text+0xb3f57): undefined reference to `dlm_unlock' >>>>> fs/built-in.o: In function `gdlm_unmount': >>>>> lock_dlm.c:(.text+0xb40ff): undefined reference to `dlm_release_lockspace' >>>>> fs/built-in.o: In function `sync_unlock.isra.4': >>>>> lock_dlm.c:(.text+0xb420d): undefined reference to `dlm_unlock' >>>>> fs/built-in.o: In function `sync_lock.isra.5': >>>>> lock_dlm.c:(.text+0xb42d9): undefined reference to `dlm_lock' >>>>> fs/built-in.o: In function `gdlm_put_lock': >>>>> lock_dlm.c:(.text+0xb45e7): undefined reference to `dlm_unlock' >>>>> fs/built-in.o: In function `gdlm_mount': >>>>> lock_dlm.c:(.text+0xb4928): undefined reference to `dlm_new_lockspace' >>>>> lock_dlm.c:(.text+0xb4c75): undefined reference to `dlm_release_lockspace' >>>>> fs/built-in.o: In function `gdlm_lock': >>>>> lock_dlm.c:(.text+0xb529f): undefined reference to `dlm_lock' >>> >>> lock_dlm.c is GFS2_FS_LOCKING_DLM which depends on DLM. >>> Is that not correct? >> >> The problem is that GFS2_FS_LOCKING_DLM is a bool. It depends on DLM, >> which is a tristate with a value of 'm', so the bool is true (as long >> as DLM != 'n'). >> >> One option is to make GFS2_FS_LOCKING_DLM depend on "DLM != n", but a >> better fix is to make GFS2_FS depend on DLM, like you said above. >> >> > > Does this look correct? As Dave says this has not changed for some time. > It seems that every time we try to get this right, there is always some > corner case that is missed :( Sorry, I misspoke above. It will have to depend on DLM=y since DLM=m is what is causing these build errors. > We can't make GFS2_FS depend on DLM as otherwise there would be no > reason to have GFS2_FS_LOCKING_DLM, at least if I've understood the > issue here correctly. So I've come up with the following... does it look > ok? > > > diff --git a/fs/gfs2/Kconfig b/fs/gfs2/Kconfig > index eb08c9e..edbad96 100644 > --- a/fs/gfs2/Kconfig > +++ b/fs/gfs2/Kconfig > @@ -26,7 +26,7 @@ config GFS2_FS > config GFS2_FS_LOCKING_DLM > bool "GFS2 DLM locking" > depends on (GFS2_FS!=n) && NET && INET && (IPV6 || IPV6=n) && \ > - HOTPLUG && DLM && CONFIGFS_FS && SYSFS > + HOTPLUG && (DLM!=n) && CONFIGFS_FS && SYSFS HOTPLUG && DLM=y && CONFIGFS_FS && SYSFS > help > Multiple node locking module for GFS2 > > > -- ~Randy ^ permalink raw reply [flat|nested] 10+ messages in thread
[parent not found: <51913F8B.7080201@infradead.org>]
[parent not found: <51914045.1060900@infradead.org>]
* [Cluster-devel] linux-next: Tree for May 8 (dlm) [not found] ` <51914045.1060900@infradead.org> @ 2013-05-13 19:45 ` Randy Dunlap 2013-05-14 8:51 ` Steven Whitehouse 0 siblings, 1 reply; 10+ messages in thread From: Randy Dunlap @ 2013-05-13 19:45 UTC (permalink / raw) To: cluster-devel.redhat.com [resending since mail server dropped it] On 05/13/13 12:34, Randy Dunlap wrote: > On 05/13/13 12:31, Randy Dunlap wrote: >> On 05/13/13 09:30, Randy Dunlap wrote: >>> On 05/13/13 02:18, Steven Whitehouse wrote: >>>> Hi, >>>> >>>> On Thu, 2013-05-09 at 10:08 -0700, Randy Dunlap wrote: >>>>> On 05/09/13 09:50, David Teigland wrote: >>>>>> On Thu, May 09, 2013 at 09:47:45AM +1000, Stephen Rothwell wrote: >>>>>>> [Just forwarding to David ...] >>>>>>> >>>>>>> On Wed, 08 May 2013 11:04:45 -0700 Randy Dunlap <rdunlap@infradead.org> wrote: >>>>>>>> >>>>>>>> on x86_64: >>>>>>>> >>>>>>>> when CONFIG_GFS2_FS_LOCKING_DLM=y and CONFIG_DLM=m: >>>>>>>> >>>>>>>> fs/built-in.o: In function `gfs2_lock': >>>>>>>> file.c:(.text+0xa512c): undefined reference to `dlm_posix_get' >>>>>>>> file.c:(.text+0xa5140): undefined reference to `dlm_posix_unlock' >>>>>>>> file.c:(.text+0xa514a): undefined reference to `dlm_posix_lock' >>>>>> >>>>>> gfs2/file.c calls the dlm directly, so I suppose gfs2 itself needs >>>>>> to depend on the dlm. It's been like this for a long time, so I >>>>>> don't know why it only appeared now. >>>>> >>>>> Agreed to both statements. >>>>> >>>>>>>> fs/built-in.o: In function `gdlm_cancel': >>>>>>>> lock_dlm.c:(.text+0xb3f57): undefined reference to `dlm_unlock' >>>>>>>> fs/built-in.o: In function `gdlm_unmount': >>>>>>>> lock_dlm.c:(.text+0xb40ff): undefined reference to `dlm_release_lockspace' >>>>>>>> fs/built-in.o: In function `sync_unlock.isra.4': >>>>>>>> lock_dlm.c:(.text+0xb420d): undefined reference to `dlm_unlock' >>>>>>>> fs/built-in.o: In function `sync_lock.isra.5': >>>>>>>> lock_dlm.c:(.text+0xb42d9): undefined reference to `dlm_lock' >>>>>>>> fs/built-in.o: In function `gdlm_put_lock': >>>>>>>> lock_dlm.c:(.text+0xb45e7): undefined reference to `dlm_unlock' >>>>>>>> fs/built-in.o: In function `gdlm_mount': >>>>>>>> lock_dlm.c:(.text+0xb4928): undefined reference to `dlm_new_lockspace' >>>>>>>> lock_dlm.c:(.text+0xb4c75): undefined reference to `dlm_release_lockspace' >>>>>>>> fs/built-in.o: In function `gdlm_lock': >>>>>>>> lock_dlm.c:(.text+0xb529f): undefined reference to `dlm_lock' >>>>>> >>>>>> lock_dlm.c is GFS2_FS_LOCKING_DLM which depends on DLM. >>>>>> Is that not correct? >>>>> >>>>> The problem is that GFS2_FS_LOCKING_DLM is a bool. It depends on DLM, >>>>> which is a tristate with a value of 'm', so the bool is true (as long >>>>> as DLM != 'n'). >>>>> >>>>> One option is to make GFS2_FS_LOCKING_DLM depend on "DLM != n", but a >>>>> better fix is to make GFS2_FS depend on DLM, like you said above. >>>>> >>>>> >>>> >>>> Does this look correct? As Dave says this has not changed for some time. >>>> It seems that every time we try to get this right, there is always some >>>> corner case that is missed :( >>> >>> Sorry, I misspoke above. It will have to depend on DLM=y since DLM=m >>> is what is causing these build errors. >> >> and that is too strict. It needs to allow for both dlm and gfs2 built as >> loadable modules. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ >>>> We can't make GFS2_FS depend on DLM as otherwise there would be no >>>> reason to have GFS2_FS_LOCKING_DLM, at least if I've understood the >>>> issue here correctly. So I've come up with the following... does it look >>>> ok? >>>> >>>> >>>> diff --git a/fs/gfs2/Kconfig b/fs/gfs2/Kconfig >>>> index eb08c9e..edbad96 100644 >>>> --- a/fs/gfs2/Kconfig >>>> +++ b/fs/gfs2/Kconfig >>>> @@ -26,7 +26,7 @@ config GFS2_FS >>>> config GFS2_FS_LOCKING_DLM >>>> bool "GFS2 DLM locking" >>>> depends on (GFS2_FS!=n) && NET && INET && (IPV6 || IPV6=n) && \ >>>> - HOTPLUG && DLM && CONFIGFS_FS && SYSFS >>>> + HOTPLUG && (DLM!=n) && CONFIGFS_FS && SYSFS >>> >>> HOTPLUG && DLM=y && CONFIGFS_FS && SYSFS >> >> HOTPLUG && CONFIGFS_FS && SYSFS && (DLM=y || DLM=GFS2_FS) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ >> I think. > > tested and works AFAICT. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ >>> >>>> help >>>> Multiple node locking module for GFS2 >>>> -- ~Randy ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Cluster-devel] linux-next: Tree for May 8 (dlm) 2013-05-13 19:45 ` Randy Dunlap @ 2013-05-14 8:51 ` Steven Whitehouse 2013-05-14 17:02 ` [Cluster-devel] [PATCH -next] gfs2: fix DLM depends to fix build errors Randy Dunlap 0 siblings, 1 reply; 10+ messages in thread From: Steven Whitehouse @ 2013-05-14 8:51 UTC (permalink / raw) To: cluster-devel.redhat.com Hi, On Mon, 2013-05-13 at 12:45 -0700, Randy Dunlap wrote: > [resending since mail server dropped it] > > On 05/13/13 12:34, Randy Dunlap wrote: > > On 05/13/13 12:31, Randy Dunlap wrote: > >> On 05/13/13 09:30, Randy Dunlap wrote: > >>> On 05/13/13 02:18, Steven Whitehouse wrote: > >>>> Hi, > >>>> > >>>> On Thu, 2013-05-09 at 10:08 -0700, Randy Dunlap wrote: > >>>>> On 05/09/13 09:50, David Teigland wrote: > >>>>>> On Thu, May 09, 2013 at 09:47:45AM +1000, Stephen Rothwell wrote: > >>>>>>> [Just forwarding to David ...] > >>>>>>> > >>>>>>> On Wed, 08 May 2013 11:04:45 -0700 Randy Dunlap <rdunlap@infradead.org> wrote: > >>>>>>>> > >>>>>>>> on x86_64: > >>>>>>>> > >>>>>>>> when CONFIG_GFS2_FS_LOCKING_DLM=y and CONFIG_DLM=m: > >>>>>>>> > >>>>>>>> fs/built-in.o: In function `gfs2_lock': > >>>>>>>> file.c:(.text+0xa512c): undefined reference to `dlm_posix_get' > >>>>>>>> file.c:(.text+0xa5140): undefined reference to `dlm_posix_unlock' > >>>>>>>> file.c:(.text+0xa514a): undefined reference to `dlm_posix_lock' > >>>>>> > >>>>>> gfs2/file.c calls the dlm directly, so I suppose gfs2 itself needs > >>>>>> to depend on the dlm. It's been like this for a long time, so I > >>>>>> don't know why it only appeared now. > >>>>> > >>>>> Agreed to both statements. > >>>>> > >>>>>>>> fs/built-in.o: In function `gdlm_cancel': > >>>>>>>> lock_dlm.c:(.text+0xb3f57): undefined reference to `dlm_unlock' > >>>>>>>> fs/built-in.o: In function `gdlm_unmount': > >>>>>>>> lock_dlm.c:(.text+0xb40ff): undefined reference to `dlm_release_lockspace' > >>>>>>>> fs/built-in.o: In function `sync_unlock.isra.4': > >>>>>>>> lock_dlm.c:(.text+0xb420d): undefined reference to `dlm_unlock' > >>>>>>>> fs/built-in.o: In function `sync_lock.isra.5': > >>>>>>>> lock_dlm.c:(.text+0xb42d9): undefined reference to `dlm_lock' > >>>>>>>> fs/built-in.o: In function `gdlm_put_lock': > >>>>>>>> lock_dlm.c:(.text+0xb45e7): undefined reference to `dlm_unlock' > >>>>>>>> fs/built-in.o: In function `gdlm_mount': > >>>>>>>> lock_dlm.c:(.text+0xb4928): undefined reference to `dlm_new_lockspace' > >>>>>>>> lock_dlm.c:(.text+0xb4c75): undefined reference to `dlm_release_lockspace' > >>>>>>>> fs/built-in.o: In function `gdlm_lock': > >>>>>>>> lock_dlm.c:(.text+0xb529f): undefined reference to `dlm_lock' > >>>>>> > >>>>>> lock_dlm.c is GFS2_FS_LOCKING_DLM which depends on DLM. > >>>>>> Is that not correct? > >>>>> > >>>>> The problem is that GFS2_FS_LOCKING_DLM is a bool. It depends on DLM, > >>>>> which is a tristate with a value of 'm', so the bool is true (as long > >>>>> as DLM != 'n'). > >>>>> > >>>>> One option is to make GFS2_FS_LOCKING_DLM depend on "DLM != n", but a > >>>>> better fix is to make GFS2_FS depend on DLM, like you said above. > >>>>> > >>>>> > >>>> > >>>> Does this look correct? As Dave says this has not changed for some time. > >>>> It seems that every time we try to get this right, there is always some > >>>> corner case that is missed :( > >>> > >>> Sorry, I misspoke above. It will have to depend on DLM=y since DLM=m > >>> is what is causing these build errors. > >> > >> and that is too strict. It needs to allow for both dlm and gfs2 built as > >> loadable modules. > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > >>>> We can't make GFS2_FS depend on DLM as otherwise there would be no > >>>> reason to have GFS2_FS_LOCKING_DLM, at least if I've understood the > >>>> issue here correctly. So I've come up with the following... does it look > >>>> ok? > >>>> > >>>> > >>>> diff --git a/fs/gfs2/Kconfig b/fs/gfs2/Kconfig > >>>> index eb08c9e..edbad96 100644 > >>>> --- a/fs/gfs2/Kconfig > >>>> +++ b/fs/gfs2/Kconfig > >>>> @@ -26,7 +26,7 @@ config GFS2_FS > >>>> config GFS2_FS_LOCKING_DLM > >>>> bool "GFS2 DLM locking" > >>>> depends on (GFS2_FS!=n) && NET && INET && (IPV6 || IPV6=n) && \ > >>>> - HOTPLUG && DLM && CONFIGFS_FS && SYSFS > >>>> + HOTPLUG && (DLM!=n) && CONFIGFS_FS && SYSFS > >>> > >>> HOTPLUG && DLM=y && CONFIGFS_FS && SYSFS > >> > >> HOTPLUG && CONFIGFS_FS && SYSFS && (DLM=y || DLM=GFS2_FS) > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > >> I think. > > > > tested and works AFAICT. > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > Yes, that looks better to me. Can you send that as a patch? Then I can stick it in the tree for further testing. Thanks, Steve. ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Cluster-devel] [PATCH -next] gfs2: fix DLM depends to fix build errors 2013-05-14 8:51 ` Steven Whitehouse @ 2013-05-14 17:02 ` Randy Dunlap 2013-05-15 10:05 ` Steven Whitehouse 0 siblings, 1 reply; 10+ messages in thread From: Randy Dunlap @ 2013-05-14 17:02 UTC (permalink / raw) To: cluster-devel.redhat.com From: Randy Dunlap <rdunlap@infradead.org> Fix build errors by correcting DLM dependencies in GFS2. Build errors happen when CONFIG_GFS2_FS_LOCKING_DLM=y and CONFIG_DLM=m: fs/built-in.o: In function `gfs2_lock': file.c:(.text+0xc7abd): undefined reference to `dlm_posix_get' file.c:(.text+0xc7ad0): undefined reference to `dlm_posix_unlock' file.c:(.text+0xc7ad9): undefined reference to `dlm_posix_lock' fs/built-in.o: In function `gdlm_unmount': lock_dlm.c:(.text+0xd6e5b): undefined reference to `dlm_release_lockspace' fs/built-in.o: In function `sync_unlock': lock_dlm.c:(.text+0xd6e9e): undefined reference to `dlm_unlock' fs/built-in.o: In function `sync_lock': lock_dlm.c:(.text+0xd6fb6): undefined reference to `dlm_lock' fs/built-in.o: In function `gdlm_put_lock': lock_dlm.c:(.text+0xd7238): undefined reference to `dlm_unlock' fs/built-in.o: In function `gdlm_mount': lock_dlm.c:(.text+0xd753e): undefined reference to `dlm_new_lockspace' lock_dlm.c:(.text+0xd79d3): undefined reference to `dlm_release_lockspace' fs/built-in.o: In function `gdlm_lock': lock_dlm.c:(.text+0xd8179): undefined reference to `dlm_lock' fs/built-in.o: In function `gdlm_cancel': lock_dlm.c:(.text+0xd6b22): undefined reference to `dlm_unlock' Signed-off-by: Randy Dunlap <rdunlap@infradead.org> --- fs/gfs2/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- linux-next-20130513.orig/fs/gfs2/Kconfig +++ linux-next-20130513/fs/gfs2/Kconfig @@ -26,7 +26,7 @@ config GFS2_FS config GFS2_FS_LOCKING_DLM bool "GFS2 DLM locking" depends on (GFS2_FS!=n) && NET && INET && (IPV6 || IPV6=n) && \ - HOTPLUG && DLM && CONFIGFS_FS && SYSFS + HOTPLUG && CONFIGFS_FS && SYSFS && (DLM=y || DLM=GFS2_FS) help Multiple node locking module for GFS2 ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Cluster-devel] [PATCH -next] gfs2: fix DLM depends to fix build errors 2013-05-14 17:02 ` [Cluster-devel] [PATCH -next] gfs2: fix DLM depends to fix build errors Randy Dunlap @ 2013-05-15 10:05 ` Steven Whitehouse 0 siblings, 0 replies; 10+ messages in thread From: Steven Whitehouse @ 2013-05-15 10:05 UTC (permalink / raw) To: cluster-devel.redhat.com Hi, Now in the -nmw tree. Will push to -fixes once it has had a few days to sit in -nmw/-next. Thanks, Steve. On Tue, 2013-05-14 at 10:02 -0700, Randy Dunlap wrote: > From: Randy Dunlap <rdunlap@infradead.org> > > Fix build errors by correcting DLM dependencies in GFS2. > Build errors happen when CONFIG_GFS2_FS_LOCKING_DLM=y and CONFIG_DLM=m: > > fs/built-in.o: In function `gfs2_lock': > file.c:(.text+0xc7abd): undefined reference to `dlm_posix_get' > file.c:(.text+0xc7ad0): undefined reference to `dlm_posix_unlock' > file.c:(.text+0xc7ad9): undefined reference to `dlm_posix_lock' > fs/built-in.o: In function `gdlm_unmount': > lock_dlm.c:(.text+0xd6e5b): undefined reference to `dlm_release_lockspace' > fs/built-in.o: In function `sync_unlock': > lock_dlm.c:(.text+0xd6e9e): undefined reference to `dlm_unlock' > fs/built-in.o: In function `sync_lock': > lock_dlm.c:(.text+0xd6fb6): undefined reference to `dlm_lock' > fs/built-in.o: In function `gdlm_put_lock': > lock_dlm.c:(.text+0xd7238): undefined reference to `dlm_unlock' > fs/built-in.o: In function `gdlm_mount': > lock_dlm.c:(.text+0xd753e): undefined reference to `dlm_new_lockspace' > lock_dlm.c:(.text+0xd79d3): undefined reference to `dlm_release_lockspace' > fs/built-in.o: In function `gdlm_lock': > lock_dlm.c:(.text+0xd8179): undefined reference to `dlm_lock' > fs/built-in.o: In function `gdlm_cancel': > lock_dlm.c:(.text+0xd6b22): undefined reference to `dlm_unlock' > > Signed-off-by: Randy Dunlap <rdunlap@infradead.org> > --- > fs/gfs2/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > --- linux-next-20130513.orig/fs/gfs2/Kconfig > +++ linux-next-20130513/fs/gfs2/Kconfig > @@ -26,7 +26,7 @@ config GFS2_FS > config GFS2_FS_LOCKING_DLM > bool "GFS2 DLM locking" > depends on (GFS2_FS!=n) && NET && INET && (IPV6 || IPV6=n) && \ > - HOTPLUG && DLM && CONFIGFS_FS && SYSFS > + HOTPLUG && CONFIGFS_FS && SYSFS && (DLM=y || DLM=GFS2_FS) > help > Multiple node locking module for GFS2 > ^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2013-05-15 10:05 UTC | newest] Thread overview: 10+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [not found] <20130508140122.e4747b58be4333060b7a248a@canb.auug.org.au> 2013-05-08 18:04 ` [Cluster-devel] linux-next: Tree for May 8 (dlm) Randy Dunlap 2013-05-08 23:47 ` Stephen Rothwell 2013-05-09 16:50 ` David Teigland 2013-05-09 17:08 ` Randy Dunlap 2013-05-13 9:18 ` Steven Whitehouse 2013-05-13 16:30 ` Randy Dunlap [not found] ` <51913F8B.7080201@infradead.org> [not found] ` <51914045.1060900@infradead.org> 2013-05-13 19:45 ` Randy Dunlap 2013-05-14 8:51 ` Steven Whitehouse 2013-05-14 17:02 ` [Cluster-devel] [PATCH -next] gfs2: fix DLM depends to fix build errors Randy Dunlap 2013-05-15 10:05 ` Steven Whitehouse
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).