From: Anton Vorontsov <cbou@mail.ru>
To: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: kernel-discuss@handhelds.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] genhd fix or ide workaround -- choose one
Date: Thu, 19 Oct 2006 16:25:16 +0400 [thread overview]
Message-ID: <20061019122516.GA9040@localhost> (raw)
In-Reply-To: <1161259553.17335.30.camel@localhost.localdomain>
On Thu, Oct 19, 2006 at 01:05:52PM +0100, Alan Cox wrote:
> Ar Iau, 2006-10-19 am 02:15 +0400, ysgrifennodd Anton Vorontsov:
> > Hi all,
> >
> > I've caught deadlock inside IDE layer using IDE-CS: after accessing
> > to IDE disk placed in PCMCIA (CF card really), it will never probe
> > again after pulling it from PCMCIA/CF.
>
> Works for me, and has done for a long time and I've also had no other
> reports of this in the past couple of years so I'm curious what trips it
> in your case ?
It just happens every time on HP iPaq hx4700. hx4700 have internal CF
slot, which is working via pxa2xx pcmcia driver.
Have you tried it recently or about six months ago? Because at that time
it was working for me too, but some kernel change
(I suppose semaphores->completion conversion) unearthed that bug, but I'm
not sure.
> > The kernel is stuck at
> > drivers/ide/ide.c:ide_unregister():604:
> >
> > 602 spin_unlock_irq(&ide_lock);
> > 603 device_unregister(&drive->gendev);
> > 604 wait_for_completion(&drive->gendev_rel_comp);
> > 605 spin_lock_irq(&ide_lock);
>
> We need to know all the references have gone away, if someone has a disk
> referenced and you pull it out we can't clean up immediately so this is
> the right place to get stuck both on a refcounting bug and if you've got
> something holding a reference for real (eg HAL)
No HAL used. No udev used. Bare kernel + static /dev + shell. CF is not
even mounted once.
Have you read comments inside -fix patch? Imho it's obvious that nobody
putting driverfs_device second time, but got it twice.
Thanks,
-- Anton (irc: bd2)
next prev parent reply other threads:[~2006-10-19 12:24 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-18 22:15 [PATCH] genhd fix or ide workaround -- choose one Anton Vorontsov
2006-10-19 12:05 ` Alan Cox
2006-10-19 12:25 ` Anton Vorontsov [this message]
2006-10-19 13:08 ` Alan Cox
2006-10-19 13:33 ` Anton Vorontsov
2006-10-19 14:16 ` Anton Vorontsov
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=20061019122516.GA9040@localhost \
--to=cbou@mail.ru \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=kernel-discuss@handhelds.org \
--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