From: Tejun Heo <htejun@gmail.com>
To: Nick Piggin <nickpiggin@yahoo.com.au>
Cc: Andrew Morton <akpm@osdl.org>,
axboe@suse.de,
"bugme-daemon@kernel-bugs.osdl.org"
<bugme-daemon@bugzilla.kernel.org>,
Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>,
Linux-ide <linux-ide@vger.kernel.org>
Subject: Re: Fw: [Bug 5880] Transcend CF pcmcia card no longer works
Date: Mon, 16 Jan 2006 17:45:55 +0900 [thread overview]
Message-ID: <43CB5D43.8080301@gmail.com> (raw)
In-Reply-To: <43C896F0.1080005@yahoo.com.au>
Nick Piggin wrote:
> Andrew Morton wrote:
>
>> (Adding bugzilla back to cc)
>>
>> Tejun Heo <htejun@gmail.com> wrote:
>>
>
>>>> I'm not sure that it has been deallocated, rather something has
>>>> overwritten
>>>> it, no?
>>>
>>>
>>> The ldm validation or failure seems irrelevant. From the original
>>> bug report.
>>>
>
> Looks like you're right.
>
> It was just odd that the ldm check worked and the msdos one
> oopsed; both attempt to read the same block in the same manner.
>
> Perhaps it may be that the queue was freed long before then, and
> only just gets reused for something else and overwritten at this
> point.
>
> slab debugging might help?
>
[CC'ing Bartlomiej and linux-ide]
Hello, Bartlomiej.
This thread started by Andrew forwarding bugzilla #5880 to as-iosched
related people as the machine oopsed in anticipatory scheduler. After
diagnosis, it seems to be premature device release problem of IDE
driver. The original bug entry is
http://bugzilla.kernel.org/show_bug.cgi?id=5880
The original bug is about CF device unuseable. The oops occurs after
yanking out the CF device during partition check is in progress (all are
failing due to IO error).
I've glanced through the IDE code and the problem seems to be in
ide_disk_get(). This function doesn't get the IDE generic device
(ide_drive_t->gendev) and so if a device is yanked out while it's still
open, the gendev doesn't wait for the open fd's to be closed. This
results in dangling open block device and thus above oops. I'm not very
sure about this analysis and currently don't have access to
hot-unpluggable IDE devices.
Can you please confirm this?
Thanks.
--
tejun
next parent reply other threads:[~2006-01-16 8:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20060113113922.23ce6d78.akpm@osdl.org>
[not found] ` <43C87CF2.30402@gmail.com>
[not found] ` <43C88509.7090009@yahoo.com.au>
[not found] ` <43C88FBB.3000607@gmail.com>
[not found] ` <20060113215218.68a68f4e.akpm@osdl.org>
[not found] ` <43C896F0.1080005@yahoo.com.au>
2006-01-16 8:45 ` Tejun Heo [this message]
2006-01-16 9:55 ` Fw: [Bug 5880] Transcend CF pcmcia card no longer works Bartlomiej Zolnierkiewicz
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=43CB5D43.8080301@gmail.com \
--to=htejun@gmail.com \
--cc=akpm@osdl.org \
--cc=axboe@suse.de \
--cc=bugme-daemon@bugzilla.kernel.org \
--cc=bzolnier@gmail.com \
--cc=linux-ide@vger.kernel.org \
--cc=nickpiggin@yahoo.com.au \
/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.