9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Francisco J Ballesteros <nemo@lsub.org>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] new usb stack and implicit timeouts
Date: Sun, 19 Jul 2009 11:07:31 +0200	[thread overview]
Message-ID: <8ccc8ba40907190207n2bd97032ra267bff7e45f7813@mail.gmail.com> (raw)
In-Reply-To: <3651cf29f627aaa60374ed89f882e752@gmx.de>

THere are some disks that do not respond
to the controller after they crash. Also, RPCs carrying ctl requests
to the devices
may not respond either in some devices. I thought it was for sure
an error when control and bulk requests took more than a while.

Right now I´m not so sure regarding bulk transfers, but I still think
it´s a good idea to timeout in the kernel control requests.

pulling out is a different thing, as you say.

ether requires more work, agree.

On Sun, Jul 19, 2009 at 9:54 AM, <cinap_lenrek@gmx.de> wrote:
> pulling the device gets me a "crc/timeout error", not a
> "request timed out".
>
> but i'm not sure if this is always the case though.
>
> the driver should not artificially generate errors in
> my opinion even if it would be convinient for some
> userspace drivers to have it. those who need a timeout
> should choose ther own value depending on what
> they are doing.
>
> --
> cinap
>
>
>
> ---------- Forwarded message ----------
> From: Bruce Ellis <bruce.ellis@gmail.com>
> To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
> Date: Sun, 19 Jul 2009 17:21:16 +1000
> Subject: Re: [9fans] new usb stack and implicit timeouts
> The only justification I can see is to disconnect to stuff that's been
> unplugged or misbehaves.
>
> In your case that's not true.
>
> brucee
>
> On Sun, Jul 19, 2009 at 5:16 PM, <cinap_lenrek@gmx.de> wrote:
>> from the manpage:
>>
>>          For control, bulk, and isochronous transfers, there is an
>>          implicit timeout performed by the kernel and it is not nec-
>>          essary for applications to place their own timers.  For
>>          interrupt transfers, the kernel will not time out any opera-
>>          tion.
>>
>> souldnt the application / userspace driver know better than some
>> random choosen timeout in the kernel driver?
>>
>> also, this has not been taken into account for the new usb/ether.
>>
>> for now i'll just compare the errstr and try again, but this implicit
>> timeout stuff just smells "too smart" for me.
>>
>> --
>> cinap
>>
>>
>>
>



  reply	other threads:[~2009-07-19  9:07 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-19  7:16 cinap_lenrek
2009-07-19  7:21 ` Bruce Ellis
2009-07-19  7:54   ` cinap_lenrek
2009-07-19  9:07     ` Francisco J Ballesteros [this message]
2009-07-19 11:05       ` Richard Miller
2009-07-19 11:30         ` Francisco J Ballesteros
2009-07-19 11:51           ` Richard Miller
2009-07-19 11:56             ` Francisco J Ballesteros
2009-07-19 13:40             ` erik quanstrom
2009-07-19 13:53               ` erik quanstrom
2009-07-19 14:03               ` Richard Miller
2009-07-19 14:32                 ` erik quanstrom
2009-07-19 15:14                   ` Francisco J Ballesteros
2009-07-19 15:46                     ` cinap_lenrek
2009-07-19 15:58                       ` Francisco J Ballesteros
2009-07-20  7:12                         ` Gorka Guardiola
2009-07-20 15:07                           ` Dan Cross
2009-07-20 16:25                             ` Francisco J Ballesteros
2009-07-20 18:10                           ` Lyndon Nerenberg
2009-07-20 19:51                             ` Dan Cross
2009-07-21  8:51                               ` Francisco J Ballesteros
2009-07-19 15:36                   ` Richard Miller
2009-07-19 11:41       ` Charles Forsyth

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=8ccc8ba40907190207n2bd97032ra267bff7e45f7813@mail.gmail.com \
    --to=nemo@lsub.org \
    --cc=9fans@9fans.net \
    /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;
as well as URLs for NNTP newsgroup(s).