All of lore.kernel.org
 help / color / mirror / Atom feed
From: Maneesh Soni <maneesh@in.ibm.com>
To: "Henrik Størner" <henrik@hswn.dk>
Subject: [FIX] Re: 2.5.42-mm2 hangs system
Date: Wed, 30 Oct 2002 15:18:46 +0530	[thread overview]
Message-ID: <20021030151846.D2613@in.ibm.com> (raw)
In-Reply-To: <20021016185908.GA863@hswn.dk>; from henrik@hswn.dk on Wed, Oct 16, 2002 at 07:03:14PM +0000

Hello Henrik,

I hope the following patch should solve your problem. The patch is made
over 2.5.44-mm6 kernel. The problem was due to anonymous dentries getting
connected with DCACHE_UNHASHED flag set.


diff -urN linux-2.5.44-mm6/fs/dcache.c linux-2.5.44-mm6-fix/fs/dcache.c
--- linux-2.5.44-mm6/fs/dcache.c	Wed Oct 30 14:42:33 2002
+++ linux-2.5.44-mm6-fix/fs/dcache.c	Wed Oct 30 13:13:43 2002
@@ -788,12 +788,15 @@
 		res = tmp;
 		tmp = NULL;
 		if (res) {
+			spin_lock(&res->d_lock);
 			res->d_sb = inode->i_sb;
 			res->d_parent = res;
 			res->d_inode = inode;
 			res->d_flags |= DCACHE_DISCONNECTED;
+			res->d_vfs_flags &= ~DCACHE_UNHASHED;
 			list_add(&res->d_alias, &inode->i_dentry);
 			list_add(&res->d_hash, &inode->i_sb->s_anon);
+			spin_unlock(&res->d_lock);
 		}
 		inode = NULL; /* don't drop reference */
 	}


Regards,
Maneesh


On Wed, Oct 16, 2002 at 07:03:14PM +0000, Henrik Storner wrote:
> Hi Maneesh,
> 
> On Wed, Oct 16, 2002 at 05:49:43PM +0200, Henrik Storner wrote:
> > On Wed, Oct 16, 2002 at 06:39:07PM +0530, Maneesh Soni wrote:
> > > As the hang looks like a loop in d_lookup can you  try
> > > recreating it *without* dcache_rcu.patch. You can backout this patch
> > > 
> > > http://www.zipworld.com.au/~akpm/linux/patches/2.5/2.5.42/2.5.42-mm2/broken-out/dcache_rcu.patch
> > > 
> > I've got some time tonight, so I will try un-doing the patch you
> > mention and see if that changes anything.
> 
> well you hit the nail right on the head there.
> 
> I've just been running the 2.5.42-mm2 kernel except for the dcache_rcu
> patch for a full hour, and I was unable to reproduce the hangs that I
> saw with the full -mm2 patch installed. Did two full kernel builds
> while reading some mail and doing other stuff - no problems what so
> ever.
> 
> Just to be sure, I re-applied the dcache_rcu patch, rebuilt the
> kernel, booted with the kernel containing dcache_rcu patch,
> and the system died within a few minutes.
> 
> So it is definitely something in the dcache_rcu patch that does it.
> 
> -- 
> Henrik Storner <henrik@hswn.dk> 

-- 
Maneesh Soni
IBM Linux Technology Center, 
IBM India Software Lab, Bangalore.
Phone: +91-80-5044999 email: maneesh@in.ibm.com
http://lse.sourceforge.net/
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/

  parent reply	other threads:[~2002-10-30 10:16 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-13 16:04 2.5.42-mm2 hangs system Henrik Størner
2002-10-13 21:03 ` William Lee Irwin III
     [not found] ` <3DA9CA28.155BA5CB@digeo.com>
2002-10-13 22:33   ` Henrik Størner
2002-10-13 22:57     ` Andrew Morton
2002-10-14 12:25       ` 2.5.42-mm2 on small systems Ed Tomlinson
2002-10-14 14:34         ` Martin J. Bligh
2002-10-14 21:24           ` Bill Davidsen
2002-10-15  6:42         ` Andrew Morton
2002-10-16 20:55           ` Bill Davidsen
2002-10-16 22:43             ` Ed Tomlinson
2002-10-16 13:09     ` 2.5.42-mm2 hangs system Maneesh Soni
2002-10-16 15:49       ` Henrik Størner
2002-10-16 18:59         ` Henrik Størner
2002-10-16 19:31           ` Dipankar Sarma
2002-10-16 19:43             ` Andrew Morton
2002-10-16 20:05               ` Dipankar Sarma
2002-10-30  9:48           ` Maneesh Soni [this message]
2002-10-31  7:54             ` [FIX] " Henrik Størner
2002-10-17 14:38         ` Maneesh Soni
2002-10-17 16:14           ` 2.5.43-mm2 gets network connection stuck Sebastian Benoit
2002-10-17 17:22             ` Andrew Morton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20021030151846.D2613@in.ibm.com \
    --to=maneesh@in.ibm.com \
    --cc=henrik@hswn.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.