If this isn't exactly what you wanted, please try our Search (there's a LOT of techy and non-techy stuff here about Linux, Unix, Mac OS X and just computers in general!):
From - Thu May 11 16:57:54 2000
Path: news.randori.com!novia!newsfeed.stanford.edu!newsfeed.berkeley.edu!newsfeed.concentric.net!newsfeed.ozemail.com.au!news.mel.connect.com.au!news.saki.com.au!not-for-mail
From: Geoff Johnson <gpj@saki.com.au>
Newsgroups: comp.unix.sco.misc
Subject: Re: Tape drives, tape drives
Date: Thu, 11 May 2000 23:23:40 +1000
Organization: Saki Computer Services
Lines: 84
Message-ID: <391AB45C.B85EFD3E@saki.com.au>
References: <390E0736.629C79F9@aplawrence.com> <8emlg2$5ua$1@ssauraaa-i-1.production.compuserve.com> <8emq41$4jg$1@nnrp1.deja.com> <20000502100422.A5337@kstarr.celestial.com> <39104641.619768F1@saki.com.au> <39104C06.63A7A2BD@aplawrence.com> <3918CD0D.48EE66D7@saki.com.au> <39193B30.51E33B1C@aplawrence.com>
NNTP-Posting-Host: gpj.saki.com.au
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Trace: aida.saki.com.au 958051421 865 203.5.24.161 (11 May 2000 13:23:41 GMT)
X-Complaints-To: postmaster@saki.com.au
NNTP-Posting-Date: 11 May 2000 13:23:41 GMT
X-Mailer: Mozilla 4.08 [en] (X11; I; UnixWare 5 i386)
Xref: news.randori.com comp.unix.sco.misc:59940
X-Mozilla-Status: 8010
X-Mozilla-Status2: 00000000
Tony Lawrence wrote:
>
> Geoff Johnson wrote:
> >
> > Tony Lawrence wrote:
> > >
> > > Geoff Johnson wrote:
> > > >
> > > > If a tape driver is unkillable it is nearly always a device driver bug.
> > > > There is no excuse for sleep at a unkillable priority without seting up
> > > > timeout to signal the sleep. Even if its 5 minutes later this beats the
> > > > forced reboot that is usually 5 minutes later anyway.
> > >
> > > There's no excuse, but it's still extremely common. But
> > > isn't it not that it's sleeping at an unkillable priority
> > > but that it never comes out of the driver so the process
> > > never sees the signal?
> > >
> > We are saying exactly the same thing.
> > The only way to not leave the drver is to sleep. The only way the
> > processes does not respond to signals is if it sleeps at too high
> > a priority.
>
> I always have trouble getting my brain wrapped around these
> issues. So does everyone else, even the people who write
> the drivers- that's why they screw up, right?
>
> But the fine distinction I'm trying to make here is that a
> process running in kernel code doesn't respond to signals
> because it doesn't see signals until it pops back up into
> user space. So yes, that's probably because it's sleeping,
Only if it is sleeping at too high a priority. Below the threshhold
priorty the kernel will prematurely awaken the process if the process
is signaled.
Of course a stupid program could loop back and sleep again.
This is how reads on ttys etc, are forced to return from the kernel
side of the fence when the process is interupted. There is nothing
magic about being in the kernel except for bloody minded device drivers.
In the old days of QIC tape drives just about every driver on the market
suffered from this problem because a typoe in the standard led everyone
to
write a damaged driver.
> but isn't the fact that it's in kernel space more
> important? I dunno, as I said, at a certain point here my
> brain boggles and I lose track of the overall picture :-)
>
> >
> > I ioctl is useless if the upper levels of the driver will not allow
> > simultaneous opens of the device (usually a good thing).
> > Creating a co-device for issuing the ioctl to is harder than just
> > coding it correctly in the first place.
>
> You are probably right. Still, if you can't plan for every
> screwup of the hardware, it would seem smart to have a
> safety valve that could let the administrator free it.
>
> >
> > > I think drivers should be written with an "abort" ioctl that
> > > just tells it "give it up, Jack- I know you think you are
> > > doing something useful, but you aren't, so just reset your
> > > state and let your head pop back out of the water".
> > >
> > > --
> > > Tony Lawrence (tony@aplawrence.com)
> > > SCO/Linux articles, help, book reviews, tests,
> > > job listings and more :
> >
> > --
> >
> > Geoff Johnson
>
> --
> Tony Lawrence (tony@aplawrence.com)
> SCO/Linux articles, help, book reviews, tests,
> job listings and more :
--
Geoff Johnson
Enter your email address for automatic notification of new posts here
(be sure to whitelist 'feedburner.com' if you use spam filtering)
| Views for this page | ||||
|---|---|---|---|---|
| Today | This Week | This Month | This Year | Overall |
| 1 | 4 | 8 | 8 | 1,098 |
/Bofcusm/357.html copyright 1997-2004 (various authors) All Rights Reserved
Have you tried Searching this site?
Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates
This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more. We appreciate comments and article submissions.

Click here to add your comments