From: Greg KH <gregkh@suse.de>
To: Linus Torvalds <torvalds@osdl.org>
Cc: Russell King <rmk+lkml@arm.linux.org.uk>,
James Bottomley <James.Bottomley@SteelEye.com>,
Erik Mouw <erik@harddisk-recovery.com>,
Or Gerlitz <or.gerlitz@gmail.com>,
linux-scsi@vger.kernel.org, axboe@suse.de,
Andrew Vasquez <andrew.vasquez@qlogic.com>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Todd Blumer <todd@sdgsystems.com>
Subject: Re: [BUG 2.6.17-git] kmem_cache_create: duplicate cache scsi_cmd_cache
Date: Fri, 12 May 2006 16:57:45 -0700 [thread overview]
Message-ID: <20060512235745.GA31148@suse.de> (raw)
In-Reply-To: <Pine.LNX.4.64.0605121532360.3866@g5.osdl.org>
On Fri, May 12, 2006 at 03:37:59PM -0700, Linus Torvalds wrote:
>
>
> On Fri, 12 May 2006, Linus Torvalds wrote:
> >
> > On Fri, 12 May 2006, Russell King wrote:
> > >
> > > From: Todd Blumer <todd@sdgsystems.com>
> > > On a PXA27x handheld (iPAQ hx4700), when we eject a mounted SD memory
> > > card, we get a kernel panic (kernel trying to clean up non-existent
> > > device). One hack patch to avoid the panic is:
> > >
> > > --- fs/partitions/check.c 10 Apr 2006 22:57:27 -0000 1.15
> > > +++ fs/partitions/check.c 4 May 2006 20:30:15 -0000
> > > @@ -491,6 +491,7 @@
> > > kfree(disk_name);
> > > }
> > > put_device(disk->driverfs_dev);
> > > + disk->driverfs_dev = 0; /* HACK - what's the right solution? */
> > > }
> > > kobject_uevent(&disk->kobj, KOBJ_REMOVE);
> > > kobject_del(&disk->kobj);
> >
> > Btw, on the face it of, I really think that this patch is correct
> > regardless of any other issues.
>
> .. and I suspect it also shows what the "other issues" are.
>
> Shouldn't that KOBJ_REMOVE uevent happen _before_ we do all the freeing of
> the backing dev object? That KOBJ_REMOVE thing actually seems to want to
> report the pathname for the disk it removes. Preferably before the thing
> is gone and can't be reported on..
>
> Ie shouldn't the diff be something like this?
It looks sane to me. Russell, does it solve your oops too?
thanks,
greg k-h
next prev parent reply other threads:[~2006-05-13 0:00 UTC|newest]
Thread overview: 46+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-11 15:14 [BUG 2.6.17-git] kmem_cache_create: duplicate cache scsi_cmd_cache Erik Mouw
2006-05-12 4:53 ` Or Gerlitz
2006-05-12 17:16 ` Erik Mouw
2006-05-12 17:27 ` Andrew Vasquez
2006-05-12 20:18 ` Erik Mouw
2006-05-12 17:36 ` Linus Torvalds
2006-05-12 17:47 ` James Bottomley
2006-05-12 18:58 ` James Bottomley
2006-05-12 19:09 ` Linus Torvalds
2006-05-12 20:38 ` Russell King
2006-05-12 20:50 ` Linus Torvalds
2006-05-12 20:58 ` Russell King
2006-05-12 21:27 ` Linus Torvalds
2006-05-12 21:46 ` Linus Torvalds
2006-05-12 21:51 ` Russell King
2006-05-12 22:15 ` Linus Torvalds
2006-05-12 22:37 ` Linus Torvalds
2006-05-12 23:57 ` Greg KH [this message]
2006-05-14 16:01 ` Russell King
2006-05-12 21:18 ` Greg KH
2006-05-12 21:32 ` Linus Torvalds
2006-05-12 22:45 ` Greg KH
2006-05-12 20:52 ` Greg KH
2006-05-12 21:03 ` Russell King
2006-05-12 21:34 ` Greg KH
2006-05-12 21:39 ` Al Viro
2006-05-12 20:30 ` Erik Mouw
2006-05-12 20:37 ` Russell King
2006-05-12 20:21 ` Erik Mouw
2006-05-12 20:34 ` Russell King
2006-05-12 21:43 ` Al Viro
2006-05-12 21:55 ` Russell King
2006-05-12 22:08 ` Al Viro
2006-05-12 22:22 ` Linus Torvalds
2006-05-12 22:28 ` Al Viro
2006-05-12 22:48 ` Al Viro
2006-05-12 22:51 ` Al Viro
2006-05-12 23:04 ` Linus Torvalds
2006-05-12 23:21 ` Al Viro
2006-05-12 23:37 ` Al Viro
2006-05-12 23:50 ` Linus Torvalds
2006-05-13 0:20 ` Al Viro
2006-05-24 14:07 ` Erik Mouw
2006-05-13 0:08 ` Greg KH
2006-05-12 22:37 ` Russell King
2006-05-12 21:58 ` Al Viro
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=20060512235745.GA31148@suse.de \
--to=gregkh@suse.de \
--cc=James.Bottomley@SteelEye.com \
--cc=andrew.vasquez@qlogic.com \
--cc=axboe@suse.de \
--cc=erik@harddisk-recovery.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=or.gerlitz@gmail.com \
--cc=rmk+lkml@arm.linux.org.uk \
--cc=todd@sdgsystems.com \
--cc=torvalds@osdl.org \
/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.