mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Mikael Pettersson <mikpe@it.uu.se>
To: Greg KH <gregkh@suse.de>
Cc: Mikael Pettersson <mikpe@it.uu.se>,
	fujita.tomonori@lab.ntt.co.jp, dwmw2@infradead.org,
	jens.axboe@oracle.com, linux-kernel@vger.kernel.org
Subject: Re: [REGRESSION 2.6.27-rc4-git7] mtd broken by cmdfilter move
Date: Sat, 30 Aug 2008 20:07:08 +0200	[thread overview]
Message-ID: <18617.35916.80075.481108@harpo.it.uu.se> (raw)
In-Reply-To: <20080830172024.GB12414@suse.de>

Greg KH writes:
 > > --- linux-2.6.27-rc4-git6/block/cmd-filter.c.~1~	2008-08-30 17:08:58.000000000 +0200
 > > +++ linux-2.6.27-rc4-git6/block/cmd-filter.c	2008-08-30 17:36:36.000000000 +0200
 > > @@ -215,6 +215,13 @@ int blk_register_filter(struct gendisk *
 > >  	if (!parent)
 > >  		return -ENODEV;
 > >  
 > > +	printk("%s: disk %p queue %p filter %p &filter->kobj %p\n",
 > > +	       __func__, disk, disk->queue, filter, &filter->kobj);
 > > +	if (filter->kobj.state_initialized) {
 > > +		printk("%s: kobj %p already inited, bailing out\n",
 > > +		       __func__, &filter->kobj);
 > > +		return 0;
 > > +	}
 > 
 > Ick, no, don't go poking into the internals of a kobject like this to
 > fix this kind of problem.  If you really don't know if you have
 > initialized this kobject or not, then you will have reference counting
 > problems, which need to be fixed for real.

This was a debug patch, I wasn't suggesting it as "the" fix.

  reply	other threads:[~2008-08-30 18:15 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-30 17:04 Mikael Pettersson
2008-08-30 17:20 ` Greg KH
2008-08-30 18:07   ` Mikael Pettersson [this message]
2008-08-30 17:23 ` David Woodhouse
2008-08-30 18:10   ` Mikael Pettersson
2008-08-30 20:00     ` Mikael Pettersson

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=18617.35916.80075.481108@harpo.it.uu.se \
    --to=mikpe@it.uu.se \
    --cc=dwmw2@infradead.org \
    --cc=fujita.tomonori@lab.ntt.co.jp \
    --cc=gregkh@suse.de \
    --cc=jens.axboe@oracle.com \
    --cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®