Re: linux-2.1.102/drivers/scsi/fdomain.c as module hangs system

Pavel Machek (pavel@atrey.karlin.mff.cuni.cz)
Wed, 20 May 1998 12:10:42 +0200


Hi!

> > > to bring up another point. A comment near the udelay code hints that
> > > you shouldn't use it for > 1000us. Yet this seems largely ignored in
> > > various driver source files (with delays up to 1000000us being used)
> >
> > With too large values, the udelay counter will simply overflow. I suspect
> > anything under a second is reasonably safe, but precision is probably
> > horrible.
>
> Just a question, but in what type of a scenario is a large delay needed?

You need to wait second so that user can read message before machine crashes.

-- 
The best software in life is free (not shareware)!		Pavel
GCM d? s-: !g p?:+ au- a--@ w+ v- C++@ UL+++ L++ N++ E++ W--- M- Y- R+

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu