From: cinap_lenrek@gmx.de
To: 9fans@9fans.net
Subject: [9fans] sdiahci.c on sources broken?
Date: Thu, 25 Sep 2008 21:58:22 +0200 [thread overview]
Message-ID: <9889b044e939e4884b56a67475e09e81@gmx.de> (raw)
this is from eriks contrib:
static void
westerndigitalhung(Drive *d)
{
if((d->portm.feat&Datapi) == 0 && d->active &&
TK2MS(Ticks-d->intick) > 5000){
dprint("%s: drive hung; resetting [%lux] ci=%lux\n",
d->unit->name, d->port->task, d->port->ci);
d->state = Dreset;
}
}
and this is the version on sources:
static void
westerndigitalhung(Drive *d)
{
if((d->portm.feat&Datapi) == 0 && d->active && TK2MS(d->intick) > 5000){
dprint("%s: drive hung; resetting [%lux] ci %lx\n",
d->unit->name, d->port->task, d->port->ci);
d->state = Dreset;
}
}
if i understand it right, d->intick is just the point in time it started some
io request. it does:
p->intick = MACHP(0)->ticks;
p->active++;
so it seems the version on sources is wrong, and eriks version does the right thing.
(calculating the time the operation takes (current time - time of request start))
can somebody confirm this?
--
cinap
next reply other threads:[~2008-09-25 19:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-25 19:58 cinap_lenrek [this message]
2008-09-26 4:41 ` Lucio De Re
2008-09-26 6:37 ` Uriel
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=9889b044e939e4884b56a67475e09e81@gmx.de \
--to=cinap_lenrek@gmx.de \
--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).