From: "Kay Sievers" <kay.sievers@vrfy.org>
To: "Peter Korsgaard" <jacmet@sunsite.dk>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>,
linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org
Subject: Re: 2.6.28-rc2: (mtd)block/partitions BUG with kobject reference count
Date: Thu, 30 Oct 2008 22:51:41 +0100 [thread overview]
Message-ID: <ac3eb2510810301451x7dbf18edgd03c1433099ce5e4@mail.gmail.com> (raw)
In-Reply-To: <87abcnj810.fsf@macbook.be.48ers.dk>
On Thu, Oct 30, 2008 at 00:28, Peter Korsgaard <jacmet@sunsite.dk> wrote:
>>>>>> "Rafael" == Rafael J Wysocki <rjw@sisk.pl> writes:
>
> Rafael> On Wednesday, 29 of October 2008, Peter Korsgaard wrote:
> >> Hi,
> >>
> >> I'm seing what looks like a kobject reference count issue with
> >> mtdblock_ro + mtd_dataflash + mtd partitions and repeated unbind/bind.
> >> I'm on 2.6.28-rc2, but I can reproduce the problem on 2.6.27 as well.
>
> Rafael> Is it reproducible with 2.6.26 too?
>
> Sorry, I haven't backported my platform support code to such "old"
> kernel. I can do it though, if you think it will help pinpoint the
> issue.
This sounds like a possible reason for the problem:
"After digging into the mtd code, this bug is not related to our driver. It
should be a subtle bug in mtd core code.
In add_mtd_partition, for 2 partitions, 2 gendisk structures will be
allocated. But these 2 gendisk->queue will be set to the same
request_queue. Then when unregistering the 1st partition, from the
same request_queue->backing_dev_info, the bdi struct will be set to
NULL. So for the 2nd partition (bdi == NULL), the sysfs dir of 2nd
partition will not be removed. Finally, when modprobe the module
again, the 2nd partition won't be added"
https://blackfin.uclinux.org/gf/tracker/4463
Kay
next prev parent reply other threads:[~2008-10-30 21:51 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-29 15:13 Peter Korsgaard
2008-10-29 23:27 ` Rafael J. Wysocki
2008-10-29 23:28 ` Peter Korsgaard
2008-10-30 21:51 ` Kay Sievers [this message]
2008-10-30 23:47 ` Kay Sievers
2008-10-31 4:24 ` Bryan Wu
2008-10-31 6:26 ` Kay Sievers
2008-11-03 15:14 ` Peter Korsgaard
2008-10-31 4:22 ` Bryan Wu
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=ac3eb2510810301451x7dbf18edgd03c1433099ce5e4@mail.gmail.com \
--to=kay.sievers@vrfy.org \
--cc=jacmet@sunsite.dk \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mtd@lists.infradead.org \
--cc=rjw@sisk.pl \
/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®