Re: [PATCH] CDROM: replace jiffies busyloop with msleep




* Rene Herman <rene.herman@xxxxxxxxx> wrote:

The trouble there is that unless you poll the bloody thing like mad
too much of the Q subchannels passes below you and you need a huge
number of retries to get anything out of it. I noticed when I started
adding audio bits that the driver took full seconds to complete some
audio requests while the old driver was snappy in that regard. When I
replaced our sleeping loop with a busy-wait same as the original the
snappyness returned and moreover, reading the TOC from the CD went
from something close to a minute to approximately a second. Thought
that minute was just because I was dealing with an old junk 1-speed
drive...

ouch ...

then i guess the right approach is to not use jiffies but to use a
calculated number of udelay(10) calls or so.

Ingo
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: [2.6.30-rc2] usb reset during big file transfer and ext3 error
    ... those XactErr debugging messages in your log show that the driver was ... extending the number of retries in software. ... I just got myself a USB hub and I noticed one thing ...
    (Linux-Kernel)
  • Re: Damn you, FEDEX! or Nikon D40 lost in Springfield, MO blackhole.
    ... the 2 mp Mavica he had been using with a Nikon D40. ... After shopping around, he got me to order one for him. ... The shipper had it insured, but from what I have read it could take weeks to sort this crap out. ... You may get your insurance from FedEx and a couple weeks later they find it and deliver it. ...
    (alt.photography)
  • Re: increasing dd disk to disk transfer rate
    ... but what would smart help me further with recovery? ... >>Is there a way to tweak the driver (be it the FreeBSD promise driver ... >>or the normal ata driver) to use more retries on errors so that I ... > 'retry' and 'retries' variables/fields. ...
    (freebsd-hackers)
  • Re: increasing dd disk to disk transfer rate
    ... >at a transfer rate of about 1.1 MB/s. ... >Is there a way to tweak the driver (be it the FreeBSD promise driver ... >or the normal ata driver) to use more retries on errors so that I ... 'retry' and 'retries' variables/fields. ...
    (freebsd-hackers)
  • Re: The Sci-Fi Rejection Letter That Time Forgot
    ... nations have stockpiled arsenals of these incredible bombs and the time the story is set. ...
    (rec.arts.sf.written)

Loading