All of lore.kernel.org
 help / color / mirror / Atom feed
* [Ocfs2-devel] ocfs2: initialize stack_user lvbptr
       [not found] <20081110222457.GE17894@redhat.com>
@ 2008-11-10 22:55 ` Joel Becker
  2008-11-10 23:44   ` Mark Fasheh
  0 siblings, 1 reply; 2+ messages in thread
From: Joel Becker @ 2008-11-10 22:55 UTC (permalink / raw)
  To: ocfs2-devel

On Mon, Nov 10, 2008 at 04:24:57PM -0600, David Teigland wrote:
> commit 3d48397962cdad2aa32df75cfdae980af9bce8cc
> Author: David Teigland <teigland@redhat.com>
> Date:   Mon Nov 10 16:16:07 2008 -0600
> 
>     ocfs2: initialize stack_user lvbptr
>     
>     The locking_state dump, ocfs2_dlm_seq_show, reads the lvb on locks
>     where it has not yet been initialized by a lock call.
>     
>     Signed-off-by: David Teigland <teigland@redhat.com>

Acked-by: Joel Becker <joel.becker@oracle.com>

> 
> diff --git a/fs/ocfs2/stack_user.c b/fs/ocfs2/stack_user.c
> index faec2d8..9b76d41 100644
> --- a/fs/ocfs2/stack_user.c
> +++ b/fs/ocfs2/stack_user.c
> @@ -740,6 +740,9 @@ static int user_dlm_lock_status(union ocfs2_dlm_lksb *lksb)
>  
>  static void *user_dlm_lvb(union ocfs2_dlm_lksb *lksb)
>  {
> +	if (!lksb->lksb_fsdlm.sb_lvbptr)
> +		lksb->lksb_fsdlm.sb_lvbptr = (char *)lksb +
> +					     sizeof(struct dlm_lksb);
>  	return (void *)(lksb->lksb_fsdlm.sb_lvbptr);
>  }
>  

-- 

"What does it say about a society's priorities when the time you
 spend in meetings on Monday is greater than the total number of
 hours you spent sleeping over the weekend?"
	- Nat Friedman

Joel Becker
Principal Software Developer
Oracle
E-mail: joel.becker at oracle.com
Phone: (650) 506-8127

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Ocfs2-devel] ocfs2: initialize stack_user lvbptr
  2008-11-10 22:55 ` [Ocfs2-devel] ocfs2: initialize stack_user lvbptr Joel Becker
@ 2008-11-10 23:44   ` Mark Fasheh
  0 siblings, 0 replies; 2+ messages in thread
From: Mark Fasheh @ 2008-11-10 23:44 UTC (permalink / raw)
  To: ocfs2-devel

On Mon, Nov 10, 2008 at 02:55:07PM -0800, Joel Becker wrote:
> On Mon, Nov 10, 2008 at 04:24:57PM -0600, David Teigland wrote:
> > commit 3d48397962cdad2aa32df75cfdae980af9bce8cc
> > Author: David Teigland <teigland@redhat.com>
> > Date:   Mon Nov 10 16:16:07 2008 -0600
> > 
> >     ocfs2: initialize stack_user lvbptr
> >     
> >     The locking_state dump, ocfs2_dlm_seq_show, reads the lvb on locks
> >     where it has not yet been initialized by a lock call.
> >     
> >     Signed-off-by: David Teigland <teigland@redhat.com>
> 
> Acked-by: Joel Becker <joel.becker@oracle.com>

Yep, looks good. I'll toss this in ocfs2.git.
	--Mark

--
Mark Fasheh

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-11-10 23:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20081110222457.GE17894@redhat.com>
2008-11-10 22:55 ` [Ocfs2-devel] ocfs2: initialize stack_user lvbptr Joel Becker
2008-11-10 23:44   ` Mark Fasheh

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.