All of lore.kernel.org
 help / color / mirror / Atom feed
* stale dk warning
@ 2006-01-20 20:28 Jake Maciejewski
  2006-01-23  8:29 ` Vladimir V. Saveliev
  0 siblings, 1 reply; 6+ messages in thread
From: Jake Maciejewski @ 2006-01-20 20:28 UTC (permalink / raw)
  To: reiserfs-list

In addition to the disable write barrier warning reported by Louis-David
Mitterrand on January 10th, with 2.6.15-1 I'm getting:
        
        <4>reiser4[dd(25448)]: update_stale_dk (fs/reiser4/search.c:1363)[nikita-38210]:
        WARNING: stale dk
        
The process varies. I've also seen the stale dk warning triggered by rsync and rm.

-- 
Jake Maciejewski <maciejej@msoe.edu>


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

* Re: stale dk warning
  2006-01-20 20:28 stale dk warning Jake Maciejewski
@ 2006-01-23  8:29 ` Vladimir V. Saveliev
  2006-01-23  8:59   ` Hans Reiser
  0 siblings, 1 reply; 6+ messages in thread
From: Vladimir V. Saveliev @ 2006-01-23  8:29 UTC (permalink / raw)
  To: Jake Maciejewski; +Cc: reiserfs-list

Hello

On Fri, 2006-01-20 at 14:28 -0600, Jake Maciejewski wrote:
> In addition to the disable write barrier warning reported by Louis-David
> Mitterrand on January 10th, with 2.6.15-1 I'm getting:
>         
>         <4>reiser4[dd(25448)]: update_stale_dk (fs/reiser4/search.c:1363)[nikita-38210]:
>         WARNING: stale dk
>         
> The process varies. I've also seen the stale dk warning triggered by rsync and rm.
> 

This is harmless. I think we should remove this warning as well as the
one about write barrier.


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

* Re: stale dk warning
  2006-01-23  8:29 ` Vladimir V. Saveliev
@ 2006-01-23  8:59   ` Hans Reiser
  2006-01-23  9:01     ` Hans Reiser
  0 siblings, 1 reply; 6+ messages in thread
From: Hans Reiser @ 2006-01-23  8:59 UTC (permalink / raw)
  To: Vladimir V. Saveliev, Alexander Zarochentcev
  Cc: Jake Maciejewski, reiserfs-list

Vladimir V. Saveliev wrote:

>Hello
>
>On Fri, 2006-01-20 at 14:28 -0600, Jake Maciejewski wrote:
>  
>
>>In addition to the disable write barrier warning reported by Louis-David
>>Mitterrand on January 10th, with 2.6.15-1 I'm getting:
>>        
>>        <4>reiser4[dd(25448)]: update_stale_dk (fs/reiser4/search.c:1363)[nikita-38210]:
>>        WARNING: stale dk
>>        
>>The process varies. I've also seen the stale dk warning triggered by rsync and rm.
>>
>>    
>>
>
>This is harmless. I think we should remove this warning as well as the
>one about write barrier.
>
>
>
>  
>
Zam said he would change it to a notice.  Zam, what happened to the patch?

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

* Re: stale dk warning
  2006-01-23  8:59   ` Hans Reiser
@ 2006-01-23  9:01     ` Hans Reiser
  2006-01-23 22:50       ` Alexander Zarochentsev
  2006-01-25 12:17       ` E.Gryaznova
  0 siblings, 2 replies; 6+ messages in thread
From: Hans Reiser @ 2006-01-23  9:01 UTC (permalink / raw)
  To: Hans Reiser
  Cc: Vladimir V. Saveliev, Alexander Zarochentcev, Jake Maciejewski,
	reiserfs-list

Hans Reiser wrote:

>Vladimir V. Saveliev wrote:
>
>  
>
>>Hello
>>
>>On Fri, 2006-01-20 at 14:28 -0600, Jake Maciejewski wrote:
>> 
>>
>>    
>>
>>>In addition to the disable write barrier warning reported by Louis-David
>>>Mitterrand on January 10th, with 2.6.15-1 I'm getting:
>>>       
>>>       <4>reiser4[dd(25448)]: update_stale_dk (fs/reiser4/search.c:1363)[nikita-38210]:
>>>       WARNING: stale dk
>>>       
>>>The process varies. I've also seen the stale dk warning triggered by rsync and rm.
>>>
>>>   
>>>
>>>      
>>>
>>This is harmless. I think we should remove this warning as well as the
>>one about write barrier.
>>
>>
>>
>> 
>>
>>    
>>
>Zam said he would change it
>
by "it" I refer to the write barrier warning, sorry for my imprecision....

> to a notice.  Zam, what happened to the patch?
>
>
>  
>


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

* Re: stale dk warning
  2006-01-23  9:01     ` Hans Reiser
@ 2006-01-23 22:50       ` Alexander Zarochentsev
  2006-01-25 12:17       ` E.Gryaznova
  1 sibling, 0 replies; 6+ messages in thread
From: Alexander Zarochentsev @ 2006-01-23 22:50 UTC (permalink / raw)
  To: Hans Reiser; +Cc: Vladimir V. Saveliev, Jake Maciejewski, reiserfs-list

On Monday 23 January 2006 12:01, Hans Reiser wrote:
> Hans Reiser wrote:
> >Vladimir V. Saveliev wrote:
> >>Hello
> >>
> >>On Fri, 2006-01-20 at 14:28 -0600, Jake Maciejewski wrote:
> >>>In addition to the disable write barrier warning reported by Louis-David
> >>>Mitterrand on January 10th, with 2.6.15-1 I'm getting:
> >>>
> >>>       <4>reiser4[dd(25448)]: update_stale_dk
> >>> (fs/reiser4/search.c:1363)[nikita-38210]: WARNING: stale dk
> >>>
> >>>The process varies. I've also seen the stale dk warning triggered by
> >>> rsync and rm.
> >>
> >>This is harmless. I think we should remove this warning as well as the
> >>one about write barrier.
> >
> >Zam said he would change it
>
> by "it" I refer to the write barrier warning, sorry for my imprecision....
>
> > to a notice.  Zam, what happened to the patch?

1. re-phrase "disabling write barrier" warning which confuses users and
   make it KERN_NOTICE instead of KERN_WARNING.
2. remove the "[nikita-38210]: WARNING: stale dk" at fs/reiser4/search.c 
   which does not indicate any reiser4 tree or fs problems.

Signed-off-by: Alex Zarochentsev <zam@namesys.com>
---

 fs/reiser4/debug.h  |    5 ++++-
 fs/reiser4/search.c |    2 --
 fs/reiser4/wander.c |    3 ++-
 3 files changed, 6 insertions(+), 4 deletions(-)

--- linux-2.6.x.orig/fs/reiser4/debug.h
+++ linux-2.6.x/fs/reiser4/debug.h
@@ -205,10 +205,13 @@ extern int is_in_reiser4_context(void);
 #define wrong_return_value( label, function )				\
 	impossible( label, "wrong return value from " function )
 
-/* Issue warning message to the console */
+/* Issue different types of reiser4 messages to the console */
 #define warning( label, format, ... )					\
 	DCALL( KERN_WARNING, 						\
 	       printk, 1, label, "WARNING: " format , ## __VA_ARGS__ )
+#define notice( label, format, ... )					\
+	DCALL( KERN_NOTICE, 						\
+	       printk, 1, label, "NOTICE: " format , ## __VA_ARGS__ )
 
 /* mark not yet implemented functionality */
 #define not_yet( label, format, ... )				\
--- linux-2.6.x.orig/fs/reiser4/search.c
+++ linux-2.6.x/fs/reiser4/search.c
@@ -1359,8 +1359,6 @@ static void update_stale_dk(reiser4_tree
 	if (unlikely(ZF_ISSET(node, JNODE_RIGHT_CONNECTED) &&
 		     right && ZF_ISSET(right, JNODE_DKSET) &&
 		     !keyeq(&rd, znode_get_ld_key(right)))) {
-		/* does this ever happen? */
-		warning("nikita-38210", "stale dk");
 		assert("nikita-38211", ZF_ISSET(node, JNODE_DKSET));
 		read_unlock_dk(tree);
 		read_unlock_tree(tree);
--- linux-2.6.x.orig/fs/reiser4/wander.c
+++ linux-2.6.x/fs/reiser4/wander.c
@@ -230,7 +230,8 @@ static inline int reiser4_use_write_barr
 
 static void disable_write_barrier(struct super_block * s)
 {
-	warning("zam-1055", "disabling write barrier\n");
+	notice("zam-1055", "%s does not support write barriers,"
+	       " using synchronous write instead.\n", s->s_id);
 	set_bit((int)REISER4_NO_WRITE_BARRIER, &get_super_private(s)->fs_flags);
 }
 

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

* Re: stale dk warning
  2006-01-23  9:01     ` Hans Reiser
  2006-01-23 22:50       ` Alexander Zarochentsev
@ 2006-01-25 12:17       ` E.Gryaznova
  1 sibling, 0 replies; 6+ messages in thread
From: E.Gryaznova @ 2006-01-25 12:17 UTC (permalink / raw)
  To: Hans Reiser, Vladimir V. Saveliev; +Cc: Alexander Zarochentcev, reiserfs-list

Hello,

shouldnt we also remove the warning [nikita-33281] ?

Jan 25 14:48:29 bones kernel: <4>reiser4[ent:hda8!(5047)]: 
capture_anonymous_jno
des (fs/reiser4/plugin/file/file.c:1348)[nikita-33281]:
Jan 25 14:48:29 bones kernel: WARNING: anonymous jnode in writeback: 
(69954 2216
63)
Jan 25 14:48:29 bones kernel:
Jan 25 14:48:29 bones kernel: <4>reiser4[ent:hda8!(5047)]: 
capture_anonymous_jno
des (fs/reiser4/plugin/file/file.c:1348)[nikita-33281]:
Jan 25 14:48:29 bones kernel: WARNING: anonymous jnode in writeback: 
(69954 2216
64)

Thanks,
Lena


Hans Reiser wrote:

>Hans Reiser wrote:
>
>  
>
>>Vladimir V. Saveliev wrote:
>>
>> 
>>
>>    
>>
>>>Hello
>>>
>>>On Fri, 2006-01-20 at 14:28 -0600, Jake Maciejewski wrote:
>>>
>>>
>>>   
>>>
>>>      
>>>
>>>>In addition to the disable write barrier warning reported by Louis-David
>>>>Mitterrand on January 10th, with 2.6.15-1 I'm getting:
>>>>      
>>>>      <4>reiser4[dd(25448)]: update_stale_dk (fs/reiser4/search.c:1363)[nikita-38210]:
>>>>      WARNING: stale dk
>>>>      
>>>>The process varies. I've also seen the stale dk warning triggered by rsync and rm.
>>>>
>>>>  
>>>>
>>>>     
>>>>
>>>>        
>>>>
>>>This is harmless. I think we should remove this warning as well as the
>>>one about write barrier.
>>>
>>>
>>>
>>>
>>>
>>>   
>>>
>>>      
>>>
>>Zam said he would change it
>>
>>    
>>
>by "it" I refer to the write barrier warning, sorry for my imprecision....
>
>  
>
>>to a notice.  Zam, what happened to the patch?
>>
>>
>> 
>>
>>    
>>
>
>
>
>  
>


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

end of thread, other threads:[~2006-01-25 12:17 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-20 20:28 stale dk warning Jake Maciejewski
2006-01-23  8:29 ` Vladimir V. Saveliev
2006-01-23  8:59   ` Hans Reiser
2006-01-23  9:01     ` Hans Reiser
2006-01-23 22:50       ` Alexander Zarochentsev
2006-01-25 12:17       ` E.Gryaznova

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.