[PATCH 12/16] dlm: fix dlm_dir_lookup() handling of too long names

2008-02-06 Thread David Teigland
From: Al Viro [EMAIL PROTECTED] ... those can happen and BUG() from DLM_ASSERT() in allocate_direntry() is not a good way to handle them. Signed-off-by: Al Viro [EMAIL PROTECTED] Signed-off-by: David Teigland [EMAIL PROTECTED] --- fs/dlm/dir.c |3 +++ 1 files changed, 3 insertions(+), 0

[PATCH 11/16] dlm: fix overflows when copying from -m_extra to lvb

2008-02-06 Thread David Teigland
From: Al Viro [EMAIL PROTECTED] Signed-off-by: Al Viro [EMAIL PROTECTED] Signed-off-by: David Teigland [EMAIL PROTECTED] --- fs/dlm/lock.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/fs/dlm/lock.c b/fs/dlm/lock.c index 6d98cf9..5b82187 100644 --- a/fs/dlm/lock.c

[PATCH 15/16] dlm: eliminate astparam type casting

2008-02-06 Thread David Teigland
Put lkb_astparam in a union with a dlm_user_args pointer to eliminate a lot of type casting. Signed-off-by: David Teigland [EMAIL PROTECTED] --- fs/dlm/debug_fs.c |6 ++ fs/dlm/dlm_internal.h |5 - fs/dlm/lock.c | 14 ++ fs/dlm/memory.c |2

[PATCH 14/16] dlm: proper types for asts and basts

2008-02-06 Thread David Teigland
Use proper types for ast and bast functions, and use consistent type for ast param. Signed-off-by: David Teigland [EMAIL PROTECTED] --- fs/dlm/ast.c |9 +++ fs/dlm/dlm_internal.h | 14 +--- fs/dlm/lock.c | 50

[GIT PULL] dlm updates for 2.6.25

2008-01-30 Thread David Teigland
are mostly relevant for other applications. There are no new features, only fixes for various bugs or problems. They stem mainly from mixed architecture testing, and new tests that overlap recovery with userland stress tests. Thanks, Dave Adrian Bunk (1): dlm: proper prototypes David

[GIT PULL] dlm updates for 2.6.25

2008-01-30 Thread David Teigland
are mostly relevant for other applications. There are no new features, only fixes for various bugs or problems. They stem mainly from mixed architecture testing, and new tests that overlap recovery with userland stress tests. Thanks, Dave Adrian Bunk (1): dlm: proper prototypes David

Re: [PATCH 07/19] dlm: swap bytes for rcom lock reply

2008-01-29 Thread David Teigland
On Sat, Jan 26, 2008 at 10:00:29PM -0800, Andrew Morton wrote: > > On Thu, 24 Jan 2008 10:50:30 -0600 David Teigland <[EMAIL PROTECTED]> wrote: > > void dlm_rcom_in(struct dlm_rcom *rc) > > { > > struct dlm_header *hd = (struct dlm_header *) rc; > &g

Re: [PATCH 07/19] dlm: swap bytes for rcom lock reply

2008-01-29 Thread David Teigland
On Sat, Jan 26, 2008 at 10:00:29PM -0800, Andrew Morton wrote: On Thu, 24 Jan 2008 10:50:30 -0600 David Teigland [EMAIL PROTECTED] wrote: void dlm_rcom_in(struct dlm_rcom *rc) { struct dlm_header *hd = (struct dlm_header *) rc; aww, c'mon guys, this is nonsense. struct

Re: [PATCH 07/19] dlm: swap bytes for rcom lock reply

2008-01-28 Thread David Teigland
On Sat, Jan 26, 2008 at 10:00:29PM -0800, Andrew Morton wrote: > > On Thu, 24 Jan 2008 10:50:30 -0600 David Teigland <[EMAIL PROTECTED]> wrote: > > void dlm_rcom_in(struct dlm_rcom *rc) > > { > > struct dlm_header *hd = (struct dlm_header *) rc; > &g

Re: [PATCH 07/19] dlm: swap bytes for rcom lock reply

2008-01-28 Thread David Teigland
On Sat, Jan 26, 2008 at 10:00:29PM -0800, Andrew Morton wrote: On Thu, 24 Jan 2008 10:50:30 -0600 David Teigland [EMAIL PROTECTED] wrote: void dlm_rcom_in(struct dlm_rcom *rc) { struct dlm_header *hd = (struct dlm_header *) rc; aww, c'mon guys, this is nonsense. struct

[PATCH 02/19] dlm: proper prototypes

2008-01-24 Thread David Teigland
From: Adrian Bunk <[EMAIL PROTECTED]> This patch adds a proper prototype for some functions in fs/dlm/dlm_internal.h Signed-off-by: Adrian Bunk <[EMAIL PROTECTED]> Signed-off-by: David Teigland <[EMAIL PROTECTED]> --- fs/dlm/dlm_internal.h | 16 fs/dlm/loc

[PATCH 14/19] dlm: reject normal unlock when lock is waiting for lookup

2008-01-24 Thread David Teigland
Non-forced unlocks should be rejected if the lock is waiting on the rsb_lookup list for another lock to establish the master node. Signed-off-by: David Teigland <[EMAIL PROTECTED]> --- fs/dlm/lock.c |9 + 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/fs/dlm/lo

[PATCH 17/19] dlm: change error message to debug

2008-01-24 Thread David Teigland
The invalid lockspace messages are normal and can appear relatively often. They should be suppressed without debugging enabled. Signed-off-by: David Teigland <[EMAIL PROTECTED]> --- fs/dlm/lock.c |5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/fs/dlm/lock.c b/

[PATCH 15/19] dlm: limit dir lookup loop

2008-01-24 Thread David Teigland
, the infinite loop is dangerous since some other unknown condition may appear causing the loop to never break. Signed-off-by: David Teigland <[EMAIL PROTECTED]> --- fs/dlm/lock.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/fs/dlm/lock.c b/fs/dlm/lock.c

[PATCH 18/19] dlm: keep cached master rsbs during recovery

2008-01-24 Thread David Teigland
keep rsb's in their toss list that they are the master of. These rsb's need to be included when the resource directory is rebuilt during recovery. Signed-off-by: David Teigland <[EMAIL PROTECTED]> --- fs/dlm/dir.c | 66 +--- fs/dlm/lock.c

[PATCH 19/19] dlm: Sanity check namelen before copying it

2008-01-24 Thread David Teigland
field). This patch restricts the length of the name to the amount of data actually passed into the call. Signed-off-by: Patrick Caulfield <[EMAIL PROTECTED]> Signed-off-by: David Teigland <[EMAIL PROTECTED]> --- fs/dlm/user.c | 12 +--- 1 files changed, 9 insertions(+), 3 deleti

[PATCH 16/19] dlm: fix possible use-after-free

2008-01-24 Thread David Teigland
The dlm_put_lkb() can free the lkb and its associated ua structure, so we can't depend on using the ua struct after the put. Signed-off-by: David Teigland <[EMAIL PROTECTED]> --- fs/dlm/user.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/dlm/user.c b/

[PATCH 13/19] dlm: validate messages before processing

2008-01-24 Thread David Teigland
for an old message to be processed and caught by these checks. Signed-off-by: David Teigland <[EMAIL PROTECTED]> --- fs/dlm/lock.c | 139 ++-- 1 files changed, 104 insertions(+), 35 deletions(-) diff --git a/fs/dlm/lock.c b/fs/dlm/lock.c

[PATCH 12/19] dlm: reject messages from non-members

2008-01-24 Thread David Teigland
an error message, and could in some cases change some state, causing problems. Signed-off-by: David Teigland <[EMAIL PROTECTED]> --- fs/dlm/lock.c |9 - fs/dlm/member.c |4 ++-- fs/dlm/member.h |3 ++- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/fs/dlm/

[PATCH 11/19] dlm: another call to confirm_master in receive_request_reply

2008-01-24 Thread David Teigland
When a failed request (EBADR or ENOTBLK) is unlocked/canceled instead of retried, there may be other lkb's waiting on the rsb_lookup list for it to complete. A call to confirm_master() is needed to move on to the next waiting lkb since the current one won't be retried. Signed-off-by: David

[PATCH 06/19] dlm: align midcomms message buffer

2008-01-24 Thread David Teigland
From: Fabio M. Di Nitto <[EMAIL PROTECTED]> gcc does not guarantee that a static buffer is 64bit aligned. This change allows sparc64 to work. Signed-off-by: Fabio M. Di Nitto <[EMAIL PROTECTED]> Signed-off-by: David Teigland <[EMAIL PROTECTED]> --- fs/dlm/midcomms.c |2 +

[PATCH 10/19] dlm: recover locks waiting for overlap replies

2008-01-24 Thread David Teigland
start doing recovery in the presence of a many overlapping unlock/cancel ops. Signed-off-by: David Teigland <[EMAIL PROTECTED]> --- fs/dlm/lock.c | 37 - 1 files changed, 32 insertions(+), 5 deletions(-) diff --git a/fs/dlm/lock.c b/fs/dlm/lock.c index 4

[PATCH 05/19] dlm: close othercons

2008-01-24 Thread David Teigland
onn': Can't free all objects" and the DLM cannot be restarted without a system reboot. See bz#428119 Signed-off-by: Patrick Caulfield <[EMAIL PROTECTED]> Signed-off-by: Fabio M. Di Nitto <[EMAIL PROTECTED]> Signed-off-by: David Teigland <[EMAIL PROTECTED]> --- fs/dlm/lowcom

[PATCH 07/19] dlm: swap bytes for rcom lock reply

2008-01-24 Thread David Teigland
From: Fabio M. Di Nitto <[EMAIL PROTECTED]> DLM_RCOM_LOCK_REPLY messages need byte swapping. Signed-off-by: Fabio M. Di Nitto <[EMAIL PROTECTED]> Signed-off-by: David Teigland <[EMAIL PROTECTED]> --- fs/dlm/util.c |9 ++--- 1 files changed, 6 insertions(+), 3 deleti

[PATCH 08/19] dlm: use fixed errno values in messages

2008-01-24 Thread David Teigland
the platform-specific ones at the other end. Many thanks to Fabio for testing this patch. Initial patch from Patrick. Signed-off-by: Patrick Caulfield <[EMAIL PROTECTED]> Signed-off-by: Fabio M. Di Nitto <[EMAIL PROTECTED]> Signed-off-by: David Teigland <[EMAIL PROTECTED]> --- fs

[PATCH 09/19] dlm: clear ast_type when removing from astqueue

2008-01-24 Thread David Teigland
time. Appears when process calls libdlm dlm_release_lockspace() which first closes the ls dev triggering clear_proc_locks, and then removes the ls (a write to control dev) causing release_lockspace(). Signed-off-by: David Teigland <[EMAIL PROTECTED]> --- fs/dlm/lock.c |1 + 1 files chan

[PATCH 03/19] dlm: don't print common non-errors

2008-01-24 Thread David Teigland
Change log_error() to log_debug() for conditions that can occur in large number in normal operation. Signed-off-by: David Teigland <[EMAIL PROTECTED]> --- fs/dlm/lock.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/fs/dlm/lock.c b/fs/dlm/lock.c index 7bc6ad9..6

[PATCH 04/19] dlm: use dlm prefix on alloc and free functions

2008-01-24 Thread David Teigland
The dlm functions in memory.c should use the dlm_ prefix. Also, use kzalloc/kfree directly for dlm_direntry's, removing the wrapper functions. Signed-off-by: David Teigland <[EMAIL PROTECTED]> --- fs/dlm/dir.c | 10 +- fs/dlm/lock.c | 26 +-

[PATCH 00/19] dlm patches for 2.6.25

2008-01-24 Thread David Teigland
(+), 191 deletions(-) Adrian Bunk (1): dlm: proper prototypes David Teigland (13): dlm: don't print common non-errors dlm: use dlm prefix on alloc and free functions dlm: use fixed errno values in messages dlm: clear ast_type when removing from astqueue dlm

[PATCH 01/19] dlm: bind connections from known local address when using TCP

2008-01-24 Thread David Teigland
rators to "fix" their systems or use clever routing tricks. Signed-off-by: Lon Hohberger <[EMAIL PROTECTED]> Signed-off-by: Patrick Caulfield <[EMAIL PROTECTED]> Signed-off-by: David Teigland <[EMAIL PROTECTED]> --- fs/dlm/lowcomms.c | 13 - 1 files chan

[PATCH 00/19] dlm patches for 2.6.25

2008-01-24 Thread David Teigland
(+), 191 deletions(-) Adrian Bunk (1): dlm: proper prototypes David Teigland (13): dlm: don't print common non-errors dlm: use dlm prefix on alloc and free functions dlm: use fixed errno values in messages dlm: clear ast_type when removing from astqueue dlm

[PATCH 01/19] dlm: bind connections from known local address when using TCP

2008-01-24 Thread David Teigland
to fix their systems or use clever routing tricks. Signed-off-by: Lon Hohberger [EMAIL PROTECTED] Signed-off-by: Patrick Caulfield [EMAIL PROTECTED] Signed-off-by: David Teigland [EMAIL PROTECTED] --- fs/dlm/lowcomms.c | 13 - 1 files changed, 12 insertions(+), 1 deletions(-) diff --git

[PATCH 03/19] dlm: don't print common non-errors

2008-01-24 Thread David Teigland
Change log_error() to log_debug() for conditions that can occur in large number in normal operation. Signed-off-by: David Teigland [EMAIL PROTECTED] --- fs/dlm/lock.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/fs/dlm/lock.c b/fs/dlm/lock.c index 7bc6ad9..63fe74d

[PATCH 04/19] dlm: use dlm prefix on alloc and free functions

2008-01-24 Thread David Teigland
The dlm functions in memory.c should use the dlm_ prefix. Also, use kzalloc/kfree directly for dlm_direntry's, removing the wrapper functions. Signed-off-by: David Teigland [EMAIL PROTECTED] --- fs/dlm/dir.c | 10 +- fs/dlm/lock.c | 26 +- fs/dlm

[PATCH 08/19] dlm: use fixed errno values in messages

2008-01-24 Thread David Teigland
the platform-specific ones at the other end. Many thanks to Fabio for testing this patch. Initial patch from Patrick. Signed-off-by: Patrick Caulfield [EMAIL PROTECTED] Signed-off-by: Fabio M. Di Nitto [EMAIL PROTECTED] Signed-off-by: David Teigland [EMAIL PROTECTED] --- fs/dlm/util.c | 57

[PATCH 09/19] dlm: clear ast_type when removing from astqueue

2008-01-24 Thread David Teigland
time. Appears when process calls libdlm dlm_release_lockspace() which first closes the ls dev triggering clear_proc_locks, and then removes the ls (a write to control dev) causing release_lockspace(). Signed-off-by: David Teigland [EMAIL PROTECTED] --- fs/dlm/lock.c |1 + 1 files changed, 1

[PATCH 05/19] dlm: close othercons

2008-01-24 Thread David Teigland
all objects and the DLM cannot be restarted without a system reboot. See bz#428119 Signed-off-by: Patrick Caulfield [EMAIL PROTECTED] Signed-off-by: Fabio M. Di Nitto [EMAIL PROTECTED] Signed-off-by: David Teigland [EMAIL PROTECTED] --- fs/dlm/lowcomms.c |2 ++ 1 files changed, 2 insertions

[PATCH 07/19] dlm: swap bytes for rcom lock reply

2008-01-24 Thread David Teigland
From: Fabio M. Di Nitto [EMAIL PROTECTED] DLM_RCOM_LOCK_REPLY messages need byte swapping. Signed-off-by: Fabio M. Di Nitto [EMAIL PROTECTED] Signed-off-by: David Teigland [EMAIL PROTECTED] --- fs/dlm/util.c |9 ++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/fs/dlm

[PATCH 06/19] dlm: align midcomms message buffer

2008-01-24 Thread David Teigland
From: Fabio M. Di Nitto [EMAIL PROTECTED] gcc does not guarantee that a static buffer is 64bit aligned. This change allows sparc64 to work. Signed-off-by: Fabio M. Di Nitto [EMAIL PROTECTED] Signed-off-by: David Teigland [EMAIL PROTECTED] --- fs/dlm/midcomms.c |2 +- 1 files changed, 1

[PATCH 10/19] dlm: recover locks waiting for overlap replies

2008-01-24 Thread David Teigland
start doing recovery in the presence of a many overlapping unlock/cancel ops. Signed-off-by: David Teigland [EMAIL PROTECTED] --- fs/dlm/lock.c | 37 - 1 files changed, 32 insertions(+), 5 deletions(-) diff --git a/fs/dlm/lock.c b/fs/dlm/lock.c index 43ca2a3

[PATCH 12/19] dlm: reject messages from non-members

2008-01-24 Thread David Teigland
an error message, and could in some cases change some state, causing problems. Signed-off-by: David Teigland [EMAIL PROTECTED] --- fs/dlm/lock.c |9 - fs/dlm/member.c |4 ++-- fs/dlm/member.h |3 ++- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/fs/dlm/lock.c b

[PATCH 11/19] dlm: another call to confirm_master in receive_request_reply

2008-01-24 Thread David Teigland
When a failed request (EBADR or ENOTBLK) is unlocked/canceled instead of retried, there may be other lkb's waiting on the rsb_lookup list for it to complete. A call to confirm_master() is needed to move on to the next waiting lkb since the current one won't be retried. Signed-off-by: David

[PATCH 16/19] dlm: fix possible use-after-free

2008-01-24 Thread David Teigland
The dlm_put_lkb() can free the lkb and its associated ua structure, so we can't depend on using the ua struct after the put. Signed-off-by: David Teigland [EMAIL PROTECTED] --- fs/dlm/user.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/dlm/user.c b/fs/dlm/user.c

[PATCH 13/19] dlm: validate messages before processing

2008-01-24 Thread David Teigland
for an old message to be processed and caught by these checks. Signed-off-by: David Teigland [EMAIL PROTECTED] --- fs/dlm/lock.c | 139 ++-- 1 files changed, 104 insertions(+), 35 deletions(-) diff --git a/fs/dlm/lock.c b/fs/dlm/lock.c index c3b9fca

[PATCH 18/19] dlm: keep cached master rsbs during recovery

2008-01-24 Thread David Teigland
in their toss list that they are the master of. These rsb's need to be included when the resource directory is rebuilt during recovery. Signed-off-by: David Teigland [EMAIL PROTECTED] --- fs/dlm/dir.c | 66 +--- fs/dlm/lock.c |6 - fs/dlm

[PATCH 19/19] dlm: Sanity check namelen before copying it

2008-01-24 Thread David Teigland
). This patch restricts the length of the name to the amount of data actually passed into the call. Signed-off-by: Patrick Caulfield [EMAIL PROTECTED] Signed-off-by: David Teigland [EMAIL PROTECTED] --- fs/dlm/user.c | 12 +--- 1 files changed, 9 insertions(+), 3 deletions(-) diff --git a/fs

[PATCH 17/19] dlm: change error message to debug

2008-01-24 Thread David Teigland
The invalid lockspace messages are normal and can appear relatively often. They should be suppressed without debugging enabled. Signed-off-by: David Teigland [EMAIL PROTECTED] --- fs/dlm/lock.c |5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/fs/dlm/lock.c b/fs/dlm

[PATCH 15/19] dlm: limit dir lookup loop

2008-01-24 Thread David Teigland
, the infinite loop is dangerous since some other unknown condition may appear causing the loop to never break. Signed-off-by: David Teigland [EMAIL PROTECTED] --- fs/dlm/lock.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/fs/dlm/lock.c b/fs/dlm/lock.c index fa68e9b

[PATCH 02/19] dlm: proper prototypes

2008-01-24 Thread David Teigland
From: Adrian Bunk [EMAIL PROTECTED] This patch adds a proper prototype for some functions in fs/dlm/dlm_internal.h Signed-off-by: Adrian Bunk [EMAIL PROTECTED] Signed-off-by: David Teigland [EMAIL PROTECTED] --- fs/dlm/dlm_internal.h | 16 fs/dlm/lock.c |1 - fs

[PATCH 14/19] dlm: reject normal unlock when lock is waiting for lookup

2008-01-24 Thread David Teigland
Non-forced unlocks should be rejected if the lock is waiting on the rsb_lookup list for another lock to establish the master node. Signed-off-by: David Teigland [EMAIL PROTECTED] --- fs/dlm/lock.c |9 + 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/fs/dlm/lock.c b/fs

Re: [2.6 patch] fs/dlm/: proper prototypes

2007-11-05 Thread David Teigland
On Sat, Nov 03, 2007 at 01:04:30AM +0100, Adrian Bunk wrote: > This patch adds a proper prototype for some functions in > fs/dlm/dlm_internal.h Acked-by: David Teigland <[EMAIL PROTECTED]> > Signed-off-by: Adrian Bunk <[EMAIL PROTECTED]> > > --- > &

Re: [2.6 patch] fs/dlm/: proper prototypes

2007-11-05 Thread David Teigland
On Sat, Nov 03, 2007 at 01:04:30AM +0100, Adrian Bunk wrote: This patch adds a proper prototype for some functions in fs/dlm/dlm_internal.h Acked-by: David Teigland [EMAIL PROTECTED] Signed-off-by: Adrian Bunk [EMAIL PROTECTED] --- fs/dlm/dlm_internal.h | 16 fs

Re: [PATCH] Fix memory leak in dlm_add_member() when dlm_node_weight() returns less than zero

2007-07-19 Thread David Teigland
On Thu, Jul 19, 2007 at 12:27:43AM +0200, Jesper Juhl wrote: > Greetings, > > There's a memory leak in fs/dlm/member.c::dlm_add_member(). > > If "dlm_node_weight(ls->ls_name, nodeid)" returns < 0, then > we'll return without freeing the memory allocated to the (at > that point yet unused)

Re: [PATCH] Fix memory leak in dlm_add_member() when dlm_node_weight() returns less than zero

2007-07-19 Thread David Teigland
On Thu, Jul 19, 2007 at 12:27:43AM +0200, Jesper Juhl wrote: Greetings, There's a memory leak in fs/dlm/member.c::dlm_add_member(). If dlm_node_weight(ls-ls_name, nodeid) returns 0, then we'll return without freeing the memory allocated to the (at that point yet unused) 'memb'. This

Re: [PATCH -mm 0/3] configfs: Miscellaneous cleanups

2007-07-05 Thread David Teigland
On Wed, Jul 04, 2007 at 11:30:08PM -0700, Joel Becker wrote: > On Wed, Jul 04, 2007 at 04:37:01PM +0530, Satyam Sharma wrote: > > From: Satyam Sharma <[EMAIL PROTECTED]> > > > > [0/3] configfs: Miscellaneous cleanups > > > > Simple cleanups for configfs (plus DLM and OCFS2, wherever applicable).

Re: [PATCH -mm 0/3] configfs: Miscellaneous cleanups

2007-07-05 Thread David Teigland
On Wed, Jul 04, 2007 at 11:30:08PM -0700, Joel Becker wrote: On Wed, Jul 04, 2007 at 04:37:01PM +0530, Satyam Sharma wrote: From: Satyam Sharma [EMAIL PROTECTED] [0/3] configfs: Miscellaneous cleanups Simple cleanups for configfs (plus DLM and OCFS2, wherever applicable). This is

Re: [patch] DLM: fix kconfig dependency

2007-06-22 Thread David Teigland
On Fri, Jun 22, 2007 at 04:06:15PM +0200, Andreas Herrmann wrote: > Avoid kernel build error (as DLM depends on SYSFS) > > LD vmlinux > fs/built-in.o: In function `dlm_lockspace_init': > : undefined reference to `kernel_subsys' > fs/built-in.o: In function `configfs_init': >

Re: [patch] DLM: fix kconfig dependency

2007-06-22 Thread David Teigland
On Fri, Jun 22, 2007 at 04:06:15PM +0200, Andreas Herrmann wrote: Avoid kernel build error (as DLM depends on SYSFS) LD vmlinux fs/built-in.o: In function `dlm_lockspace_init': : undefined reference to `kernel_subsys' fs/built-in.o: In function `configfs_init':

Re: [PATCH] DLM: fix a couple of races

2007-05-04 Thread David Teigland
On Fri, May 04, 2007 at 09:49:45PM +0530, Satyam Sharma wrote: > Hi, > > There are the following two trivially-fixed races in fs/dlm/config.c: > > 1. The configfs subsystem semaphore must be held by the caller when > calling config_group_find_obj(). It's needed to walk the subsystem >

Re: [PATCH] DLM: fix a couple of races

2007-05-04 Thread David Teigland
On Fri, May 04, 2007 at 09:49:45PM +0530, Satyam Sharma wrote: Hi, There are the following two trivially-fixed races in fs/dlm/config.c: 1. The configfs subsystem semaphore must be held by the caller when calling config_group_find_obj(). It's needed to walk the subsystem hierarchy

Re: GFS, what's remaining

2005-09-07 Thread David Teigland
On Thu, Sep 01, 2005 at 01:35:23PM +0200, Arjan van de Ven wrote: > +static inline void glock_put(struct gfs2_glock *gl) > +{ > + if (atomic_read(>gl_count) == 1) > + gfs2_glock_schedule_for_reclaim(gl); > + gfs2_assert(gl->gl_sbd, atomic_read(>gl_count) > 0,); > +

Re: GFS, what's remaining

2005-09-07 Thread David Teigland
On Thu, Sep 01, 2005 at 01:35:23PM +0200, Arjan van de Ven wrote: +static inline void glock_put(struct gfs2_glock *gl) +{ + if (atomic_read(gl-gl_count) == 1) + gfs2_glock_schedule_for_reclaim(gl); + gfs2_assert(gl-gl_sbd, atomic_read(gl-gl_count) 0,); +

Re: [Linux-cluster] Re: GFS, what's remaining

2005-09-05 Thread David Teigland
On Mon, Sep 05, 2005 at 02:19:48AM -0700, Andrew Morton wrote: > David Teigland <[EMAIL PROTECTED]> wrote: > > Four functions: > > create_lockspace() > > release_lockspace() > > lock() > > unlock() > > Neat. I'd be inclined to make them sysca

Re: [Linux-cluster] Re: GFS, what's remaining

2005-09-05 Thread David Teigland
On Mon, Sep 05, 2005 at 01:54:08AM -0700, Andrew Morton wrote: > David Teigland <[EMAIL PROTECTED]> wrote: > > > > We export our full dlm API through read/write/poll on a misc device. > > > > inotify did that for a while, but we ended up going with a straight

Re: GFS, what's remaining

2005-09-05 Thread David Teigland
On Mon, Sep 05, 2005 at 10:58:08AM +0200, J?rn Engel wrote: > #define gfs2_assert(sdp, assertion) do { \ > if (unlikely(!(assertion))) { \ > printk(KERN_ERR "GFS2: fsid=\n", (sdp)->sd_fsname); \ > BUG();

Re: GFS, what's remaining

2005-09-05 Thread David Teigland
On Thu, Sep 01, 2005 at 01:35:23PM +0200, Arjan van de Ven wrote: > +static unsigned int handle_roll(atomic_t *a) > +{ > + int x = atomic_read(a); > + if (x < 0) { > + atomic_set(a, 0); > + return 0; > + } > + return (unsigned int)x; > +} > > this is just

Re: GFS, what's remaining

2005-09-05 Thread David Teigland
On Thu, Sep 01, 2005 at 01:35:23PM +0200, Arjan van de Ven wrote: +static unsigned int handle_roll(atomic_t *a) +{ + int x = atomic_read(a); + if (x 0) { + atomic_set(a, 0); + return 0; + } + return (unsigned int)x; +} this is just plain scary.

Re: GFS, what's remaining

2005-09-05 Thread David Teigland
On Mon, Sep 05, 2005 at 10:58:08AM +0200, J?rn Engel wrote: #define gfs2_assert(sdp, assertion) do { \ if (unlikely(!(assertion))) { \ printk(KERN_ERR GFS2: fsid=\n, (sdp)-sd_fsname); \ BUG();

Re: [Linux-cluster] Re: GFS, what's remaining

2005-09-05 Thread David Teigland
On Mon, Sep 05, 2005 at 01:54:08AM -0700, Andrew Morton wrote: David Teigland [EMAIL PROTECTED] wrote: We export our full dlm API through read/write/poll on a misc device. inotify did that for a while, but we ended up going with a straight syscall interface. How fat is the dlm

Re: [Linux-cluster] Re: GFS, what's remaining

2005-09-05 Thread David Teigland
On Mon, Sep 05, 2005 at 02:19:48AM -0700, Andrew Morton wrote: David Teigland [EMAIL PROTECTED] wrote: Four functions: create_lockspace() release_lockspace() lock() unlock() Neat. I'd be inclined to make them syscalls then. I don't suppose anyone is likely to object if we

Re: GFS, what's remaining

2005-09-04 Thread David Teigland
On Thu, Sep 01, 2005 at 01:35:23PM +0200, Arjan van de Ven wrote: > +void gfs2_glock_hold(struct gfs2_glock *gl) > +{ > + glock_hold(gl); > +} > > eh why? You removed the comment stating exactly why, see below. If that's not a accepted technique in the kernel, say so and I'll be happy to

Re: [Linux-cluster] Re: GFS, what's remaining

2005-09-04 Thread David Teigland
On Sat, Sep 03, 2005 at 10:41:40PM -0700, Andrew Morton wrote: > Joel Becker <[EMAIL PROTECTED]> wrote: > > > > > What happens when we want to add some new primitive which has no > > > posix-file analog? > > > > The point of dlmfs is not to express every primitive that the > > DLM has.

Re: GFS, what's remaining

2005-09-04 Thread David Teigland
On Fri, Sep 02, 2005 at 10:28:21PM -0700, Greg KH wrote: > On Fri, Sep 02, 2005 at 05:44:03PM +0800, David Teigland wrote: > > On Thu, Sep 01, 2005 at 01:35:23PM +0200, Arjan van de Ven wrote: > > > > > + gfs2_assert(gl->gl_sbd, atomic_read(>gl_count) > 0,); >

Re: GFS, what's remaining

2005-09-04 Thread David Teigland
On Fri, Sep 02, 2005 at 10:28:21PM -0700, Greg KH wrote: On Fri, Sep 02, 2005 at 05:44:03PM +0800, David Teigland wrote: On Thu, Sep 01, 2005 at 01:35:23PM +0200, Arjan van de Ven wrote: + gfs2_assert(gl-gl_sbd, atomic_read(gl-gl_count) 0,); what is gfs2_assert() about anyway

Re: [Linux-cluster] Re: GFS, what's remaining

2005-09-04 Thread David Teigland
On Sat, Sep 03, 2005 at 10:41:40PM -0700, Andrew Morton wrote: Joel Becker [EMAIL PROTECTED] wrote: What happens when we want to add some new primitive which has no posix-file analog? The point of dlmfs is not to express every primitive that the DLM has. dlmfs cannot

Re: GFS, what's remaining

2005-09-04 Thread David Teigland
On Thu, Sep 01, 2005 at 01:35:23PM +0200, Arjan van de Ven wrote: +void gfs2_glock_hold(struct gfs2_glock *gl) +{ + glock_hold(gl); +} eh why? You removed the comment stating exactly why, see below. If that's not a accepted technique in the kernel, say so and I'll be happy to change

Re: GFS, what's remaining

2005-09-03 Thread David Teigland
On Sat, Sep 03, 2005 at 08:14:00AM +0200, Arjan van de Ven wrote: > On Sat, 2005-09-03 at 13:18 +0800, David Teigland wrote: > > On Thu, Sep 01, 2005 at 01:21:04PM -0700, Andrew Morton wrote: > > > Alan Cox <[EMAIL PROTECTED]> wrote: > > > > > - Why GFS is

Re: GFS, what's remaining

2005-09-03 Thread David Teigland
On Sat, Sep 03, 2005 at 08:14:00AM +0200, Arjan van de Ven wrote: On Sat, 2005-09-03 at 13:18 +0800, David Teigland wrote: On Thu, Sep 01, 2005 at 01:21:04PM -0700, Andrew Morton wrote: Alan Cox [EMAIL PROTECTED] wrote: - Why GFS is better than OCFS2, or has functionality which OCFS2

Re: GFS, what's remaining

2005-09-02 Thread David Teigland
On Thu, Sep 01, 2005 at 01:21:04PM -0700, Andrew Morton wrote: > Alan Cox <[EMAIL PROTECTED]> wrote: > > > - Why GFS is better than OCFS2, or has functionality which OCFS2 cannot > > > possibly gain (or vice versa) > > > > > > - Relative merits of the two offerings > > > > You missed the

Re: GFS, what's remaining

2005-09-02 Thread David Teigland
On Thu, Sep 01, 2005 at 01:35:23PM +0200, Arjan van de Ven wrote: > + gfs2_assert(gl->gl_sbd, atomic_read(>gl_count) > 0,); > what is gfs2_assert() about anyway? please just use BUG_ON directly > everywhere When a machine has many gfs file systems mounted at once it can be useful to know

Re: GFS, what's remaining

2005-09-02 Thread David Teigland
On Thu, Sep 01, 2005 at 06:56:03PM +0100, Christoph Hellwig wrote: > Whether the gfs2 code is mergeable is a completely different question, > and it seems at least debatable to submit a filesystem for inclusion I actually asked what needs to be done for merging. We appreciate the feedback and

Re: GFS, what's remaining

2005-09-02 Thread David Teigland
On Thu, Sep 01, 2005 at 06:56:03PM +0100, Christoph Hellwig wrote: Whether the gfs2 code is mergeable is a completely different question, and it seems at least debatable to submit a filesystem for inclusion I actually asked what needs to be done for merging. We appreciate the feedback and are

Re: GFS, what's remaining

2005-09-02 Thread David Teigland
On Thu, Sep 01, 2005 at 01:35:23PM +0200, Arjan van de Ven wrote: + gfs2_assert(gl-gl_sbd, atomic_read(gl-gl_count) 0,); what is gfs2_assert() about anyway? please just use BUG_ON directly everywhere When a machine has many gfs file systems mounted at once it can be useful to know which

Re: GFS, what's remaining

2005-09-02 Thread David Teigland
On Thu, Sep 01, 2005 at 01:21:04PM -0700, Andrew Morton wrote: Alan Cox [EMAIL PROTECTED] wrote: - Why GFS is better than OCFS2, or has functionality which OCFS2 cannot possibly gain (or vice versa) - Relative merits of the two offerings You missed the important one - people

Re: [PATCH 01/14] GFS: headers

2005-09-01 Thread David Teigland
On Thu, Sep 01, 2005 at 04:19:34PM +0200, Arjan van de Ven wrote: > > +/* Endian functions */ > > e again why?? > Why is this a compiletime hack? > Either you care about either-endian on disk, at which point it has to be > a runtime thing, or you make the on disk layout fixed endian, at

[PATCH 03/13] GFS: directories

2005-09-01 Thread David Teigland
Code that handles directory operations. Signed-off-by: Ken Preslan <[EMAIL PROTECTED]> Signed-off-by: David Teigland <[EMAIL PROTECTED]> --- fs/gfs2/dir.c | 2158 ++ fs/gfs2/dir.h | 51 + 2 files changed, 2209 insertions(

[PATCH 04/13] GFS: allocation

2005-09-01 Thread David Teigland
Code that manages block allocation. Signed-off-by: Ken Preslan <[EMAIL PROTECTED]> Signed-off-by: David Teigland <[EMAIL PROTECTED]> --- fs/gfs2/bits.c | 179 +++ fs/gfs2/bits.h | 28 + fs/gfs2/rgrp.c | 1374 + fs

[PATCH 01/14] GFS: headers

2005-09-01 Thread David Teigland
Central header files that are widely used. Signed-off-by: Ken Preslan <[EMAIL PROTECTED]> Signed-off-by: David Teigland <[EMAIL PROTECTED]> --- fs/gfs2/gfs2.h | 77 +++ fs/gfs2/incore.h| 691 +++ include/linux/gfs2_ioctl.h | 3

[PATCH 05/13] GFS: ea and acl

2005-09-01 Thread David Teigland
Code that handles extended attributes and ACL's. Signed-off-by: Ken Preslan <[EMAIL PROTECTED]> Signed-off-by: David Teigland <[EMAIL PROTECTED]> --- fs/gfs2/acl.c | 313 ++ fs/gfs2/acl.h | 37 + fs/gfs2/eaops.c | 179 ++ fs/gfs2/eaops.h | 30 + fs/gfs2/ea

[PATCH 08/13] GFS: mount and tuning options

2005-09-01 Thread David Teigland
There are a variety of mount options, tunable parameters, internal statistics, and methods of online file system manipulation. Signed-off-by: Ken Preslan <[EMAIL PROTECTED]> Signed-off-by: David Teigland <[EMAIL PROTECTED]> --- fs/gfs2/ioc

[PATCH 10/13] GFS: build and documentation

2005-09-01 Thread David Teigland
Add gfs to the build system and gfs2.txt to Documentation. Signed-off-by: Ken Preslan <[EMAIL PROTECTED]> Signed-off-by: David Teigland <[EMAIL PROTECTED]> --- Documentation/filesystems/gfs2.txt | 194 + fs/Kconfig |

[PATCH 07/13] GFS: quotas

2005-09-01 Thread David Teigland
Code that deals with quotas. Signed-off-by: Ken Preslan <[EMAIL PROTECTED]> Signed-off-by: David Teigland <[EMAIL PROTECTED]> --- fs/gfs2/lvb.c | 61 ++ fs/gfs2/lvb.h | 28 + fs/gfs2/quota.c | 1209 fs/gfs2/quota.h

[PATCH 06/13] GFS: logging and recovery

2005-09-01 Thread David Teigland
A per-node on-disk log is used for recovery. Signed-off-by: Ken Preslan <[EMAIL PROTECTED]> Signed-off-by: David Teigland <[EMAIL PROTECTED]> --- fs/gfs2/log.c | 670 + fs/gfs2/log.h | 68 + fs/gfs2/recov

[PATCH 11/13] GFS: lock_harness module

2005-09-01 Thread David Teigland
The lock_harness module allows a gfs file system to connect to a given lock module. Signed-off-by: Ken Preslan <[EMAIL PROTECTED]> Signed-off-by: David Teigland <[EMAIL PROTECTED]> --- fs/gfs2/locking/harness/Makefile |3 fs/gfs2/locking/harness/lm_interf

[PATCH 13/13] GFS: lock_dlm module

2005-09-01 Thread David Teigland
The lock_dlm module uses the DLM in linux/drivers/dlm/ for inter-node locking. Signed-off-by: Ken Preslan <[EMAIL PROTECTED]> Signed-off-by: David Teigland <[EMAIL PROTECTED]> --- fs/gfs2/locking/dlm/Makefile |3 fs/gfs2/locking/dlm/lock.

[PATCH 12/13] GFS: lock_nolock module

2005-09-01 Thread David Teigland
The lock_nolock module does no inter-node locking and allows gfs to be used as a local file system. Signed-off-by: Ken Preslan <[EMAIL PROTECTED]> Signed-off-by: David Teigland <[EMAIL PROTECTED]> --- fs/gfs2/locking/nolock/Makefile |3 fs/gfs2/locking/nolock/mai

GFS, what's remaining

2005-09-01 Thread David Teigland
Hi, this is the latest set of gfs patches, it includes some minor munging since the previous set. Andrew, could this be added to -mm? there's not much in the way of pending changes. http://redhat.com/~teigland/gfs2/20050901/gfs2-full.patch http://redhat.com/~teigland/gfs2/20050901/broken-out/

GFS, what's remaining

2005-09-01 Thread David Teigland
Hi, this is the latest set of gfs patches, it includes some minor munging since the previous set. Andrew, could this be added to -mm? there's not much in the way of pending changes. http://redhat.com/~teigland/gfs2/20050901/gfs2-full.patch http://redhat.com/~teigland/gfs2/20050901/broken-out/

[PATCH 12/13] GFS: lock_nolock module

2005-09-01 Thread David Teigland
The lock_nolock module does no inter-node locking and allows gfs to be used as a local file system. Signed-off-by: Ken Preslan [EMAIL PROTECTED] Signed-off-by: David Teigland [EMAIL PROTECTED] --- fs/gfs2/locking/nolock/Makefile |3 fs/gfs2/locking/nolock/main.c | 267

[PATCH 13/13] GFS: lock_dlm module

2005-09-01 Thread David Teigland
The lock_dlm module uses the DLM in linux/drivers/dlm/ for inter-node locking. Signed-off-by: Ken Preslan [EMAIL PROTECTED] Signed-off-by: David Teigland [EMAIL PROTECTED] --- fs/gfs2/locking/dlm/Makefile |3 fs/gfs2/locking/dlm/lock.c | 533

<    1   2   3   4   >